Package: python-typing-inspect / 0.9.0-2

Metadata

Package Version Patches format
python-typing-inspect 0.9.0-2 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
py314 get parameters union.patch | (download)

test_typing_inspect.py | 5 4 + 1 - 0 !
typing_inspect.py | 4 4 + 0 - 0 !
2 files changed, 8 insertions(+), 1 deletion(-)

 support types.uniontype in get_parameters()

This fixes a test on Python 3.14 because there Union[] also creates instances
of types.UnionType.

py314 skip test TypedDict.patch | (download)

test_typing_inspect.py | 3 2 + 1 - 0 !
1 file changed, 2 insertions(+), 1 deletion(-)

 =?utf-8?q?=e2=9c=85_test=3a_skip_test_using_deprecated_typeddict_o?=
 =?utf-8?q?n_latest_Python?=

py314 get origin union.patch | (download)

test_typing_inspect.py | 1 1 + 0 - 0 !
typing_inspect.py | 8 7 + 1 - 0 !
2 files changed, 8 insertions(+), 1 deletion(-)

 support `get_origin(union[...])` in python 3.14

In Python 3.14, `Union` is no longer a `typingGenericAlias`, so
`get_origin(int | str)` didn't return `Union`. This changes that by
explicitly checking for `is_union_type`. This adds a test for
`get_origin(Union[...])`.