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, Type (without parameters) means a 0-length tuple, IOW Tuple[()] (which is the PEP 484 way to spell it). Analogy with List suggests it should be an unconstrained tuple, i.e. Tuple == tuple == Tuple[Any, ...]. The second half is already true. The List analogy is List == list == List[Any]. (The last part of that is spelled differently, but is a closer analogy to Tuple[Any, ...] than to Tuple[Any], since the latter is constrained to 1-length tuples.)
The text was updated successfully, but these errors were encountered:
Currently,
Type
(without parameters) means a 0-length tuple, IOWTuple[()]
(which is the PEP 484 way to spell it). Analogy withList
suggests it should be an unconstrained tuple, i.e.Tuple
==tuple
==Tuple[Any, ...]
. The second half is already true. TheList
analogy isList
==list
==List[Any]
. (The last part of that is spelled differently, but is a closer analogy toTuple[Any, ...]
than toTuple[Any]
, since the latter is constrained to 1-length tuples.)The text was updated successfully, but these errors were encountered: