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
Python 3.10+ introduces the | union operator into type hinting, see PEP 604. Instead of Union[str, int] you can write str | int. In line with other type-hinted languages, the preferred (and more concise) way to denote an optional argument in Python 3.10 and up, is now Type | None, e.g. str | None or list | None.
I'm sure many people use version 3.10 and higher.
Also, the List type changes to list
I suggest you bring the code to PEP 604 or make an option during installation
The text was updated successfully, but these errors were encountered:
Python 3.10+ introduces the | union operator into type hinting, see PEP 604. Instead of Union[str, int] you can write str | int. In line with other type-hinted languages, the preferred (and more concise) way to denote an optional argument in Python 3.10 and up, is now Type | None, e.g. str | None or list | None.
I'm sure many people use version 3.10 and higher.
Also, the List type changes to list
I suggest you bring the code to PEP 604 or make an option during installation
The text was updated successfully, but these errors were encountered: