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
Currently when you annotate something as Tuple, mypy interprets this as a 0-length tuple. I don't like this. PEP 484 is silent on the matter, but in analogy of List I'd like it to mean Tuple[Any, ...], which is also equivalent to tuple (lowercase 't').
The text was updated successfully, but these errors were encountered:
OK, please go ahead with the PEP 484 PR. (I also couldn't find where it says that List means List[Any] -- it says something about subclassing without specifying parameters, but that's not relevant -- I'm just talking about using List in type annotations. That meaning is uncontroversial, but if it isn't said somewhere it still ought to be mentioned.
Currently when you annotate something as
Tuple
, mypy interprets this as a 0-length tuple. I don't like this. PEP 484 is silent on the matter, but in analogy ofList
I'd like it to meanTuple[Any, ...]
, which is also equivalent totuple
(lowercase 't').The text was updated successfully, but these errors were encountered: