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
At least as of python 3.9, type[int] returns a GenericAlias, but this does not seem to be implemented on builtins.pyi or at least with mypy specifically:
$ mypy -c 'type[int]'<string>:1: error: Value of type"Type[type]" is not indexable
(p.s. I am not entirely sure if this is with mypy or typeshed, correct me if I'm wrong!)
The text was updated successfully, but these errors were encountered:
At least as of python 3.9,
type[int]
returns aGenericAlias
, but this does not seem to be implemented onbuiltins.pyi
or at least with mypy specifically:(p.s. I am not entirely sure if this is with mypy or typeshed, correct me if I'm wrong!)
The text was updated successfully, but these errors were encountered: