Uh oh!
There was an error while loading. Please reload this page.
gh-104050: Argument Clinic: Annotate output_templates() - #106732
Conversation
The mypy error might indicate we have the wrong annotation for Edit: no, don't think that's the issue actually |
erlend-aasland
commented
Jul 14, 2023
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 :) |
AlexWaygood
commented
Jul 14, 2023
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. |
erlend-aasland
commented
Jul 14, 2023
Aaah, perhaps it is line 801 and 802: assertisinstance(parameters[0].converter, self_converter)
delparameters[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 |
AlexWaygood
commented
Jul 14, 2023
Bingo! I'll push a fix. |
Does f9cb537 look good to you? |
Uh oh!
There was an error while loading. Please reload this page.
erlend-aasland
commented
Jul 14, 2023
Neat! |
AlexWaygood
commented
Jul 14, 2023
Thanks! |
Uh oh!
There was an error while loading. Please reload this page.