Closed
Description
PEP 484 says "By default, None is an invalid value for any type". However, in the Python standard library there are class-level and module-level constants that are legitimately None.
Examples:
formatter.py.AS_IS
hmac.digest_size
cgi.FieldStorage.FieldStorageClass
copy.PyStringMap
Should we allow these to be declared using e.g. something like
AS_IS = Undefined(NoneType)
?
Metadata
Metadata
Assignees
Labels
No labels