Closed
Description
In mypy there's an @overload decorator. However, it was introduced before Union, and the latter is usually sufficient (or using type variables).
Is it still needed? If we need it, should it be part of this PEP or should it be a separate proposal for a runtime feature to be added to functools (like @singledispatch)? But if separate, how would it interact with generic types?
Metadata
Metadata
Assignees
Labels
No labels