Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-typer for openSUSE:Factory 
checked in at 2026-11-30 14:24:40
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-typer (Old)
 and      /work/SRC/openSUSE:Factory/.python-typer.new.1340718 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-typer"

Mon Nov 30 14:24:40 2026 rev:43 rq:1401317 version:0.29.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-typer/python-typer.changes        
2026-11-23 12:21:47.733649920 +0100
+++ /work/SRC/openSUSE:Factory/.python-typer.new.1340718/python-typer.changes   
2026-11-30 14:26:03.844084152 +0100
@@ -1,0 +2,6 @@
+Fri Nov 27 14:00:55 UTC 2026 - Matthias Bach <[email protected]>
+
+- Update to 0.29.3
+  * Ensure that allow_dash works with a Path annotation.
+
+-------------------------------------------------------------------

Old:
----
  typer-0.29.2.tar.gz

New:
----
  typer-0.29.3.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-typer.spec ++++++
--- /var/tmp/diff_new_pack.sgby3T/_old  2026-11-30 14:26:06.455193757 +0100
+++ /var/tmp/diff_new_pack.sgby3T/_new  2026-11-30 14:26:06.456193799 +0100
@@ -25,7 +25,7 @@
 %endif
 %{?sle15_python_module_pythons}
 Name:           python-typer
-Version:        0.29.2
+Version:        0.29.3
 Release:        0
 Summary:        Typer, build great CLIs. Easy to code. Based on Python type 
hints
 License:        MIT

++++++ typer-0.29.2.tar.gz -> typer-0.29.3.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/typer-0.29.2/PKG-INFO new/typer-0.29.3/PKG-INFO
--- old/typer-0.29.2/PKG-INFO   1970-01-01 01:00:00.000000000 +0100
+++ new/typer-0.29.3/PKG-INFO   1970-01-01 01:00:00.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.4
 Name: typer
-Version: 0.29.2
+Version: 0.29.3
 Summary: Typer, build great CLIs. Easy to code. Based on Python type hints.
 Author-Email: Sebastián Ramírez <[email protected]>
 License-Expression: MIT
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/typer-0.29.2/pyproject.toml 
new/typer-0.29.3/pyproject.toml
--- old/typer-0.29.2/pyproject.toml     2026-11-18 12:09:43.912352800 +0100
+++ new/typer-0.29.3/pyproject.toml     2026-11-26 09:20:47.978458000 +0100
@@ -44,7 +44,7 @@
     "colorama; platform_system == 'Windows'",
 ]
 readme = "README.md"
-version = "0.29.2"
+version = "0.29.3"
 
 [project.urls]
 Homepage = "https://github.com/fastapi/typer";
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/typer-0.29.2/tests/test_coercion.py 
new/typer-0.29.3/tests/test_coercion.py
--- old/typer-0.29.2/tests/test_coercion.py     2026-11-18 12:09:41.009631000 
+0100
+++ new/typer-0.29.3/tests/test_coercion.py     2026-11-26 09:20:45.791343200 
+0100
@@ -51,6 +51,32 @@
     assert seen == [target]
 
 
+def test_coercion_path_dash(tmp_path: Path) -> None:
+    """Ensure that allow_dash=True is honored with a Path annotation."""
+    existing = tmp_path / "config.txt"
+    existing.write_text("hello\n", encoding="utf-8")
+    app = typer.Typer()
+    seen: list[Path] = []
+
+    @app.command()
+    def main(config: Path = typer.Argument(..., allow_dash=True, exists=True)):
+        seen.append(config)
+
+    # regression test, cf. #2020
+    result = runner.invoke(app, ["-"])
+    assert result.exit_code == 0, result.output
+    assert seen == [Path("-")]
+
+    # ensure an existing file still passes
+    result = runner.invoke(app, [str(existing)])
+    assert result.exit_code == 0, result.output
+    assert seen == [Path("-"), existing]
+
+    # ensure a missing file still errors
+    result = runner.invoke(app, [str(tmp_path / "missing.txt")])
+    assert result.exit_code == 2
+
+
 def test_coercion_tuple_files(tmp_path: Path) -> None:
     first = tmp_path / "first.txt"
     second = tmp_path / "second.txt"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/typer-0.29.2/typer/__init__.py 
new/typer-0.29.3/typer/__init__.py
--- old/typer-0.29.2/typer/__init__.py  2026-11-18 12:09:41.020208400 +0100
+++ new/typer-0.29.3/typer/__init__.py  2026-11-26 09:20:45.799056300 +0100
@@ -1,6 +1,6 @@
 """Typer, build great CLIs. Easy to code. Based on Python type hints."""
 
-__version__ = "0.29.2"
+__version__ = "0.29.3"
 
 from shutil import get_terminal_size as get_terminal_size
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/typer-0.29.2/typer/_param_types.py 
new/typer-0.29.3/typer/_param_types.py
--- old/typer-0.29.2/typer/_param_types.py      2026-11-18 12:09:41.020502600 
+0100
+++ new/typer-0.29.3/typer/_param_types.py      2026-11-26 09:20:45.799808700 
+0100
@@ -241,7 +241,10 @@
                 raise BadParameter(get_error_msg(exc), ctx=ctx, param=param) 
from exc
 
     is_dash = (
-        parameter_info.file_okay and parameter_info.allow_dash and rv in 
(b"-", "-")
+        parameter_info.file_okay
+        and parameter_info.allow_dash
+        # Use os.fspath() as rv may already have been coerced to a Path
+        and os.fspath(rv) in (b"-", "-")
     )
 
     if not is_dash:

Reply via email to