Skip to content
Discussion options

You must be logged in to vote

Your observation is generally correct. I'm not exactly sure what you mean by

Which would enable an implementation like this to have matching static and runtime behaviour

though. I think if you're interested how overloads are supposed to work you can read the official documentation here:

https://typing.python.org/en/latest/spec/overload.html

This is the current spec for overloads. Zuban doesn't exactly implement it this way, but it's very similar and should generally follow these rules. Pyright as far as I know is not compatible with the overload conformance tests and hasn't been for a long time.

I'm closing, because I think this answers your initial question, but I'm happy to keep discu…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@glencoe
Comment options

@davidhalter
Comment options

@glencoe
Comment options

@davidhalter
Comment options

Answer selected by glencoe
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