Replies: 1 comment 5 replies
-
This looks like a |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm running into an odd problem with mypy not properly picking up a type variable when a call is made to super(). Here's a small example illustrating the problem:
When mypy is run on this, it outputs:
I was able to make this work by changing the definition of class Bar as follows:
However, I don't really understand why this is necessary or what the difference is between these two syntaxes. I've been using the first syntax here in many other places without running into any problems. Can anyone explain the difference here, and when to use one vs. the other?
Beta Was this translation helpful? Give feedback.
All reactions