Replies: 1 comment
-
I guess you could consider it a limitation of the type system. There's no way to say "any Here are some options:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello! I've got a quick question about overloading in a scenario like this:
The
str
in the secondgreet
overlaps the literal"hello"
, and pyright (correctly) complains about an incompatible return type. Is there any way to make this scenario valid, or is it just a limit with python's type system that I would need to work around?Thanks!
Beta Was this translation helpful? Give feedback.
All reactions