[issue46821] Introspection support for typing.overload

2022-02-21 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: Thanks! Closing this as a duplicate. -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Improve help() by making typing.overload() information accessible at runtime ___ Python

[issue46821] Introspection support for typing.overload

2022-02-21 Thread Alex Waygood
Alex Waygood added the comment: Discussion of similar ideas in Issue45100 -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue46821] Introspection support for typing.overload

2022-02-21 Thread Jelle Zijlstra
New submission from Jelle Zijlstra : Currently, the implementation of @overload (https://github.com/python/cpython/blob/59585d6b2ea50d7bc3a9b336da5bde61367f527c/Lib/typing.py#L2211) simply returns a dummy function and throws away the decorated function. This makes it virtually impossible for