
April 24, 2020
3:19 p.m.
Currently type(None) returns None if you call it with no args:
print(type(None)()) None
it'd be nice if it did the same regardless of args. currently it raises:
print(type(None)(1)) Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: NoneType takes no arguments
inspired by PEP 559: https://www.python.org/dev/peps/pep-0559/
NoneType Traceback (most recent call last): File "<stdin>", line 1, in <module> NameError: name 'NoneType' is not defined