You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A bit of context, in the attached sample code I'm using a functionality that has been introduced in Python>=3.12. More details are available on PEP 695 – Type Parameter Syntax. The PEP695 introduced a new syntax to define typing.TypeAlias (deprecated), and has been replaced by typing.TypeAliasType.
Luckly, typing_extension support the TypeAliasType since May 2023 - v4.6.0, so the minimum python version of the project can remain Python >= 3.8, if PR is accepted.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
First Check
Commit to Help
Example Code
Description
Executing the example code on python3.8 I have:
I prepared a PR to add support for this variable type.
Operating System
Linux
Operating System Details
I'm on Debian testing
❯ uname -a Linux spina 6.10.6-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.10.6-1 (2024-08-19) x86_64 GNU/Linux
Typer Version
0.12.5 | commit: 0331006
Python Version
tested on python 3.8.19 and 3.12.5
Additional Context
A bit of context, in the attached sample code I'm using a functionality that has been introduced in Python>=3.12. More details are available on PEP 695 – Type Parameter Syntax. The PEP695 introduced a new syntax to define
typing.TypeAlias
(deprecated), and has been replaced bytyping.TypeAliasType
.Luckly,
typing_extension
support theTypeAliasType
since May 2023 - v4.6.0, so the minimum python version of the project can remainPython >= 3.8
, if PR is accepted.Beta Was this translation helpful? Give feedback.
All reactions