| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
| @staticmethod | ||
| def st() -> int: | ||
| reveal_type(super(B, B).st()) # N: Revealed type is "builtins.int" | ||
| super().st() # E: "super" requires one or more positional arguments in enclosing function |
There was a problem hiding this comment.
Here again, it's specifically the zero-argument form of super() that we're complaining about (the reveal_type() call in the line immediately above this one works fine for the two-argument form of super()). So I'd keep the () here as well, personally
Sorry, something went wrong.
There was a problem hiding this comment.
And it should be "one or two" not "one or more" 👍
Sorry, something went wrong.
|
According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅ |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Now all messages use the same "super" formatting, it used to be a bit different.