Skip to content

@overload decorator on compiled functions is not tested#96478

@sobolevn

Description

@sobolevn

If I change this line

to be

try: _overload_registry[f.__module__][f.__qualname__][f.__code__.co_firstlineno] =funcexceptAttributeError: # 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    testsTests in the Lib/test dirtopic-typingtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions