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
The following example results in the bug AttributeError: 'UnionType' object has no attribute 'name' when run through pytd. This is from most recent pytype from pip
This is a minimal case that doesn't use the TypeVar nature of _Data, but for example it could be declared as (param: _Data[AnyStr]) -> AnyStr, which at the very least shouldn't error, even if the types aren't fully inferred.
The following example results in the bug
AttributeError: 'UnionType' object has no attribute 'name'when run through pytd. This is from most recent pytype from pipThis is a minimal case that doesn't use the TypeVar nature of _Data, but for example it could be declared as
(param: _Data[AnyStr]) -> AnyStr, which at the very least shouldn't error, even if the types aren't fully inferred.