| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
I am not typing expert, so there might be a more promising way to attach type hints for this.
|
Sorry, something went wrong.
There was a problem hiding this comment.
You might also want to alter .github/dependabot.yml, so that you get automated updates for the mypy version pin in Tools/cases_generator/requirements-dev.txt. Currently it only checks to see if dependencies in Tools/clinic/ need updating:
cpython/.github/dependabot.yml
Lines 15 to 21 in 75b3db8
Sorry, something went wrong.
There was a problem hiding this comment.
Thanks so much for doing this!
Sorry, something went wrong.
There was a problem hiding this comment.
(Please don't git push -f -- it makes the GitHub review reset so I can't do "changes since last review".)
Sorry, something went wrong.
| - uses: actions/checkout@v3 | ||
| - uses: actions/setup-python@v4 | ||
| with: | ||
| python-version: "3.x" |
There was a problem hiding this comment.
Are there constraints on x? The cases generator uses match/case so it's got to be at least Python 3.10.
Sorry, something went wrong.
There was a problem hiding this comment.
Let's use 3.11. We need dog fooding
Sorry, something went wrong.
There was a problem hiding this comment.
3.x is "the latest stable version of Python":
https://github.com/actions/setup-python/blob/main/docs/advanced-usage.md#specifying-a-python-version
That's 3.11 now, and will be 3.12 shortly after its release.
So 3.x would be fine to minimise churn on this line (for next time).
Sorry, something went wrong.
There was a problem hiding this comment.
So 3.x would be fine to minimise churn on this line (for next time).
Good!
Sorry, something went wrong.
| if popped is None and pushed is None: | ||
| popped, pushed = target_popped, target_pushed | ||
| else: | ||
| assert popped == target_popped | ||
| assert pushed == target_pushed | ||
| popped, pushed = target_popped, target_pushed |
There was a problem hiding this comment.
Those asserts need to stay -- per the comment on line 174-175, we're checking here that all targets of the pseudo have the same effects.
Sorry, something went wrong.
There was a problem hiding this comment.
Thanks for taking black out.
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM. Don't worry about the origin of the Iterator type.
Sorry, something went wrong.
|
Waiting comments of @AlexWaygood @hugovk before merging :) |
Sorry, something went wrong.
There was a problem hiding this comment.
FYI: You could actually use Argument Clinic to generate the Python code for the keywords. (Argument Clinic supports Python files.) I'm not suggesting you do it for this PR, though; just a thought :)
Sorry, something went wrong.
There was a problem hiding this comment.
Wow, Can I read the relevant documentation?
Sorry, something went wrong.
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
There was a problem hiding this comment.
LGTM, thanks! :D
Sorry, something went wrong.
|
Thanks! |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.