Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-typing-inspection for 
openSUSE:Factory checked in at 2026-09-28 10:35:32
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-typing-inspection (Old)
 and      /work/SRC/openSUSE:Factory/.python-typing-inspection.new.383539 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-typing-inspection"

Mon Sep 28 10:35:32 2026 rev:5 rq:1379946 version:0.4.4

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-typing-inspection/python-typing-inspection.changes
        2026-08-18 16:35:21.573515906 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-typing-inspection.new.383539/python-typing-inspection.changes
    2026-09-28 10:36:30.677969366 +0200
@@ -1,0 +2,6 @@
+Wed Sep 23 09:55:45 UTC 2026 - Markéta Machová <[email protected]>
+
+- Update to 0.4.4
+  * Add typing_objects.DEPRECATED_ALIASES_ID
+
+-------------------------------------------------------------------

Old:
----
  typing_inspection-0.4.3.tar.gz

New:
----
  typing_inspection-0.4.4.tar.gz

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

Other differences:
------------------
++++++ python-typing-inspection.spec ++++++
--- /var/tmp/diff_new_pack.oxmNOg/_old  2026-09-28 10:36:32.318038111 +0200
+++ /var/tmp/diff_new_pack.oxmNOg/_new  2026-09-28 10:36:32.319038153 +0200
@@ -18,7 +18,7 @@
 
 %{?sle15_python_module_pythons}
 Name:           python-typing-inspection
-Version:        0.4.3
+Version:        0.4.4
 Release:        0
 Summary:        Runtime typing introspection tools
 License:        MIT
@@ -28,11 +28,11 @@
 BuildRequires:  %{python_module pip}
 BuildRequires:  python-rpm-macros
 # SECTION test requirements
-BuildRequires:  %{python_module typing-extensions >= 4.12.0}
+BuildRequires:  %{python_module typing-extensions >= 4.15.0}
 BuildRequires:  %{python_module pytest}
 # /SECTION
 BuildRequires:  fdupes
-Requires:       python-typing-extensions >= 4.12.0
+Requires:       python-typing-extensions >= 4.15.0
 BuildArch:      noarch
 %python_subpackages
 

++++++ typing_inspection-0.4.3.tar.gz -> typing_inspection-0.4.4.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/typing_inspection-0.4.3/.github/workflows/coverage.yml 
new/typing_inspection-0.4.4/.github/workflows/coverage.yml
--- old/typing_inspection-0.4.3/.github/workflows/coverage.yml  2020-02-02 
01:00:00.000000000 +0100
+++ new/typing_inspection-0.4.4/.github/workflows/coverage.yml  2020-02-02 
01:00:00.000000000 +0100
@@ -36,6 +36,10 @@
   coverage-status-badge:
     runs-on: ubuntu-latest
 
+    permissions:
+      # smokeshow permissions to set commit status:
+      statuses: write
+
     environment:
       name: coverage
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/typing_inspection-0.4.3/.github/workflows/docs_publish.yml 
new/typing_inspection-0.4.4/.github/workflows/docs_publish.yml
--- old/typing_inspection-0.4.3/.github/workflows/docs_publish.yml      
2020-02-02 01:00:00.000000000 +0100
+++ new/typing_inspection-0.4.4/.github/workflows/docs_publish.yml      
2020-02-02 01:00:00.000000000 +0100
@@ -24,7 +24,8 @@
 
       - uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # 
v9.0.0
         with:
-          python-version: '3.14'
+          # Stay on 3.13 until 
https://github.com/samuelcolvin/check-python-version/issues/3 is fixed:
+          python-version: '3.13'
           enable-cache: true # zizmor: ignore[cache-poisoning] -- Job does not 
produce release artifacts and does not have sensitive permissions
 
       - run: uv sync --group docs
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/typing_inspection-0.4.3/HISTORY.md 
new/typing_inspection-0.4.4/HISTORY.md
--- old/typing_inspection-0.4.3/HISTORY.md      2020-02-02 01:00:00.000000000 
+0100
+++ new/typing_inspection-0.4.4/HISTORY.md      2020-02-02 01:00:00.000000000 
+0100
@@ -1,3 +1,7 @@
+## v0.4.4 (2026-08-12)
+
+- Add `typing_objects.DEPRECATED_ALIASES_ID` by @Viicos in 
[#63](https://github.com/pydantic/typing-inspection/pull/63)
+
 ## v0.4.3 (2026-08-10)
 
 - Drop support for Python 3.9 by @Viicos in 
[#52](https://github.com/pydantic/typing-inspection/pull/52)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/typing_inspection-0.4.3/PKG-INFO 
new/typing_inspection-0.4.4/PKG-INFO
--- old/typing_inspection-0.4.3/PKG-INFO        2020-02-02 01:00:00.000000000 
+0100
+++ new/typing_inspection-0.4.4/PKG-INFO        2020-02-02 01:00:00.000000000 
+0100
@@ -1,6 +1,6 @@
-Metadata-Version: 2.4
+Metadata-Version: 2.5
 Name: typing-inspection
-Version: 0.4.3
+Version: 0.4.4
 Summary: Runtime typing introspection tools
 Project-URL: Homepage, https://github.com/pydantic/typing-inspection
 Project-URL: Documentation, https://pydantic.github.io/typing-inspection/dev/
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/typing_inspection-0.4.3/docs/api/typing_objects.md 
new/typing_inspection-0.4.4/docs/api/typing_objects.md
--- old/typing_inspection-0.4.3/docs/api/typing_objects.md      2020-02-02 
01:00:00.000000000 +0100
+++ new/typing_inspection-0.4.4/docs/api/typing_objects.md      2020-02-02 
01:00:00.000000000 +0100
@@ -35,3 +35,4 @@
         - is_union
         - is_unpack
         - DEPRECATED_ALIASES
+        - DEPRECATED_ALIASES_IDS
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/typing_inspection-0.4.3/docs/usage.md 
new/typing_inspection-0.4.4/docs/usage.md
--- old/typing_inspection-0.4.3/docs/usage.md   2020-02-02 01:00:00.000000000 
+0100
+++ new/typing_inspection-0.4.4/docs/usage.md   2020-02-02 01:00:00.000000000 
+0100
@@ -237,16 +237,19 @@
 the origin of an *unparameterized* deprecated type alias is the replacement 
type, so we will use this one:
 
 ```python
-from typing_inspection.typing_objects import DEPRECATED_ALIASES
+from typing_inspection.typing_objects import DEPRECATED_ALIASES_IDS
 
 # If `type_expr` is `typing.List`, `origin` is the built-in `list`.
 # We thus replace `type_expr` with `list`, and set `origin` to `None`
 # to emulate the same behavior if `type_expr` was `list` in the beginning:
-if origin is not None and type_expr in DEPRECATED_ALIASES:
+if origin is not None and id(type_expr) in DEPRECATED_ALIASES_IDS:  # (1)!
     type_expr = origin
     origin = None
 ```
 
+1. We check by [identity][id] as `type_expr` could be unhashable. 
Alternatively, `type_expr` can be checked against
+   
[`DEPRECATED_ALIASES`][typing_inspection.typing_objects.DEPRECATED_ALIASES], 
but a `TypeError` might be raised.
+
 At this point, if `origin` is not `None`, you can safely assume that 
`type_expr` is a parameterized generic type.
 You can then define your own logic to handle the type expression, and have 
different code paths if you are
 dealing with a parameterized type (e.g. `list[int]`) or a "bare" type:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/typing_inspection-0.4.3/mkdocs.yml 
new/typing_inspection-0.4.4/mkdocs.yml
--- old/typing_inspection-0.4.3/mkdocs.yml      2020-02-02 01:00:00.000000000 
+0100
+++ new/typing_inspection-0.4.4/mkdocs.yml      2020-02-02 01:00:00.000000000 
+0100
@@ -7,6 +7,7 @@
   name: material
   features:
     - content.code.copy
+    - content.code.annotate
     - navigation.instant
     - navigation.instant.prefetch
     - navigation.instant.preview
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/typing_inspection-0.4.3/pyproject.toml 
new/typing_inspection-0.4.4/pyproject.toml
--- old/typing_inspection-0.4.3/pyproject.toml  2020-02-02 01:00:00.000000000 
+0100
+++ new/typing_inspection-0.4.4/pyproject.toml  2020-02-02 01:00:00.000000000 
+0100
@@ -4,7 +4,7 @@
 
 [project]
 name = 'typing-inspection'
-version = '0.4.3'
+version = '0.4.4'
 license = 'MIT'
 license-files = ['LICENSE']
 description = 'Runtime typing introspection tools'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/typing_inspection-0.4.3/src/typing_inspection/typing_objects.py 
new/typing_inspection-0.4.4/src/typing_inspection/typing_objects.py
--- old/typing_inspection-0.4.3/src/typing_inspection/typing_objects.py 
2020-02-02 01:00:00.000000000 +0100
+++ new/typing_inspection-0.4.4/src/typing_inspection/typing_objects.py 
2020-02-02 01:00:00.000000000 +0100
@@ -20,6 +20,7 @@
 
 __all__ = (
     'DEPRECATED_ALIASES',
+    'DEPRECATED_ALIASES_IDS',
     'NoneType',
     'is_annotated',
     'is_any',
@@ -609,8 +610,11 @@
 """A mapping between the deprecated typing aliases to their replacement, as 
per [PEP 585](https://peps.python.org/pep-0585/)."""
 
 
+DEPRECATED_ALIASES_IDS: Final[dict[int, type[Any]]] = {id(k): v for k, v in 
DEPRECATED_ALIASES.items()}
+"""A mapping between the [identity][id] of the deprecated typing aliases to 
their replacement, as per [PEP 585](https://peps.python.org/pep-0585/)."""
+
+
 # Add the `typing_extensions` aliases:
 for alias, target in list(DEPRECATED_ALIASES.items()):
-    # Use `alias.__name__` when we drop support for Python 3.9
-    if (te_alias := getattr(typing_extensions, alias._name, None)) is not None:
+    if (te_alias := getattr(typing_extensions, alias.__name__, None)) is not 
None:
         DEPRECATED_ALIASES[te_alias] = target
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/typing_inspection-0.4.3/src/typing_inspection/typing_objects.pyi 
new/typing_inspection-0.4.4/src/typing_inspection/typing_objects.pyi
--- old/typing_inspection-0.4.3/src/typing_inspection/typing_objects.pyi        
2020-02-02 01:00:00.000000000 +0100
+++ new/typing_inspection-0.4.4/src/typing_inspection/typing_objects.pyi        
2020-02-02 01:00:00.000000000 +0100
@@ -14,6 +14,7 @@
 
 __all__ = [
     'DEPRECATED_ALIASES',
+    'DEPRECATED_ALIASES_IDS',
     'NoneType',
     'is_annotated',
     'is_any',
@@ -415,3 +416,6 @@
 
 DEPRECATED_ALIASES: Final[dict[Any, type[Any]]]
 """A mapping between the deprecated typing aliases to their replacement, as 
per [PEP 585](https://peps.python.org/pep-0585/)."""
+
+DEPRECATED_ALIASES_IDS: Final[dict[int, type[Any]]]
+"""A mapping between the [identity][id] of the deprecated typing aliases to 
their replacement, as per [PEP 585](https://peps.python.org/pep-0585/)."""
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/typing_inspection-0.4.3/uv.lock 
new/typing_inspection-0.4.4/uv.lock
--- old/typing_inspection-0.4.3/uv.lock 2020-02-02 01:00:00.000000000 +0100
+++ new/typing_inspection-0.4.4/uv.lock 2020-02-02 01:00:00.000000000 +0100
@@ -945,7 +945,7 @@
 
 [[package]]
 name = "typing-inspection"
-version = "0.4.3"
+version = "0.4.4"
 source = { editable = "." }
 dependencies = [
     { name = "typing-extensions" },

Reply via email to