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
classA:
a: 1|2basedtyping.get_annotations(A) # {"a": Union[1, 2]# such that `1 | 2` == `Union[1, 2]`, not `3`# and `A & B` is `basedtyping.Intersection`
No idea how this will work with the new type alias syntax in 3.12, maybe we can raise that they should have a .value or something.
The text was updated successfully, but these errors were encountered:
This is definitely a basedtyping issue, look at the impl of typing.ForwardRef._evaluate, it uses eval to just execute the type which will cause runtime errors. We need to make a impl that treats it as types, not normal python exprs.
No idea how this will work with the new type alias syntax in 3.12, maybe we can raise that they should have a
.value
or something.The text was updated successfully, but these errors were encountered: