If I change this line
to be
try:
_overload_registry[f.__module__][f.__qualname__][f.__code__.co_firstlineno] = func
except AttributeError:
# Not a normal function; ignore.
raise # pass
test_typing continues to pass as expected. I think it is dangerous, because we can accidentally break something and not notice.
I will send a simple test case to catch this: we should not fail.
If I change this line
cpython/Lib/typing.py
Line 2584 in a91f255
to be
test_typingcontinues to pass as expected. I think it is dangerous, because we can accidentally break something and not notice.I will send a simple test case to catch this: we should not fail.