GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||
GeezerVison is showing github.com — gh-109413: Run mypy on `libregrtest` in CI by AlexWaygood · Pull Request #112558 · python/cpython Conversation
|
| self.stats = TestStats() | ||
| # used by --junit-xml | ||
| self.testsuite_xml: list[str] = [] | ||
| self.testsuite_xml: list = [] |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This annotation is incorrect; leaving it as it is causes mypy to issue 5 or so errors in various places. We should correct the annotation, ideally, but for now making it more vague gets rid of the errors from mypy. I prefer to defer fixing it properly to a future PR, for now.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
For the new stuff that mypy doesn't know about, can they be ignored via mypy.ini?
If so, that would be cleaner, no need to temporarily add the extra comments in py files.
Otherwise looks good.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Co-authored-by: Hugo van Kemenade <[email protected]>
There was an error while loading. Please reload this page.
I don't think so, unfortunately :( Mypy's config supports ignoring all errors in a file, or ignoring all errors of a certain category in a file. But I don't think there's a config-file option to ignore all errors due to specific functions or parameters not existing, unfortunately :/ (And, to be fair, that comes up more in CPython than elsewhere! We're literally writing the stdlib here, after all 😄) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
LGTM. These changes seem reasonable to me.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks both! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
GH-112605 is a backport of this pull request to the 3.12 branch. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
(I'm not actually backporting the change to the |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks for enabling mypy on libregrtest :-) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…ythonGH-112558 (pythonGH-112605) (cherry picked from commit acc62db) Co-authored-by: Alex Waygood <[email protected]>
…GH-112558 (GH-112605) (#112607) [3.12] gh-109413: libregrtest: Backport `.py`-file changes from GH-112558 (GH-112605) (cherry picked from commit acc62db) Co-authored-by: Alex Waygood <[email protected]>
Co-authored-by: Hugo van Kemenade <[email protected]>
Co-authored-by: Hugo van Kemenade <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.