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
I always run into an issue like this while
working with Union data, so like I know
what elements will be in a list, but I don't
think there's a way to type them, so I always
have to use # type: ignore in certain places
Even though that description it's kinda meh,
here's what I mean:
x: Dict[str, List[int, int]] # This is a `dict` of `list` which always# has 2 elements -- int and int
Hello python devs,
I always run into an issue like this while
working with
Union
data, so like I knowwhat elements will be in a list, but I don't
think there's a way to type them, so I always
have to use
# type: ignore
in certain placesEven though that description it's kinda meh,
here's what I mean:
For example
And things like this should fail:
Unions aren't as convenient...
The text was updated successfully, but these errors were encountered: