python 3.11+ (typing_extensions.overload in python < 3.11) exposes get_overloads, which provides runtime introspection of @overload decorated functions. This is implemented via an internal registry of ...