-
-
Notifications
You must be signed in to change notification settings - Fork 30.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gh-104050: Argument Clinic: Annotate output_templates() #106732
gh-104050: Argument Clinic: Annotate output_templates() #106732
Conversation
erlend-aasland
commented
Jul 13, 2023
•
edited by bedevere-bot
Loading
edited by bedevere-bot
- Issue: Add type annotations to clinic.py #104050
The mypy error might indicate we have the wrong annotation for Edit: no, don't think that's the issue actually |
Thanks for 6891e14! The last error puzzles me, though, and I have no bandwidth for this today; if you find a solution, feel free to land this :) |
Yeah, I can't immediately tell what the issue is here. I'm investigating :) Mypy doesn't have a great understanding of multiple inheritance, so this may be a false positive. But not sure. |
Aaah, perhaps it is line 801 and 802: assert isinstance(parameters[0].converter, self_converter)
del parameters[0] My guess: mypy uses only the information provided in line 801, but is not smart enough to see that line 802 invalidates that assert, so it continues to think |
Bingo! I'll push a fix. |
Does f9cb537 look good to you? |
Neat! |
Thanks! |