Skip to content

Inheriting Overloaded Signatures #1254

Discussion options

You must be logged in to vote

I consider overloads an advanced feature. Very few Python developers, even among those who regularly use type annotations in their code, use (or even know about) @overload. Overloads are most useful for annotating legacy libraries that have polymorphic functions and methods. Developers who are annotating their own code or developing new libraries with static typing in mind tend to use functional polymorphism less frequently because typing is much more top of mind when they are writing the code. So I don't know that this is a big issue.

Overriding an overloaded method is even more uncommon. I can remember needing to do this only twice in as many years. So I don't think that overridden over…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@adam-grant-hendry
Comment options

@adam-grant-hendry
Comment options

Answer selected by adam-grant-hendry
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants