Closed ric-evans closed 2 months ago
Currently, at least the |-syntax for union types does not work, since this reveals as types.UnionType, which is new. Uncertain how built-in type hinting behaves, ex: dict[str,int] versus the already supported Dict[str,int].
|
types.UnionType
dict[str,int]
Dict[str,int]
We'll need to get creative to test python 3.11 type syntax since this will obviously fail older pythons.
closed in #106
Currently, at least the
|
-syntax for union types does not work, since this reveals astypes.UnionType
, which is new. Uncertain how built-in type hinting behaves, ex:dict[str,int]
versus the already supportedDict[str,int]
.