Closed UuuNyaa closed 4 months ago
@JonathanPlasse
This PR fixes the Python version. Should we wait your WIP PR #207? I think your PR may change the supported Python version.
Pyi files should be compatible for all Python version, as they are never executed. The PR already use Python 3.10 features in the Pyi files, but the CI passes as expected.
@JonathanPlasse
Hmm... I'm not sure why CI passes even if you use Python 3.10 feature.
I think we should update the requirement to use Python 3.10 from your PR. Actually, we try to use Python 3.10 feature for the type annotation for the generation code as well in future. Is it possible to update Python version to 3.10 in your PR?
@UuuNyaa
Thank you for your contribution again! Could you update your code to use Python 3.10 from above discussion?
I will rebase my PR once this PR with Python 3.10 is merged.
@JonathanPlasse
Hmm... I'm not sure why CI passes even if you use Python 3.10 feature.
Why would it not pass? The Python 3.10 features are only present in the generated code and not in the actual generation code.
I think we should update the requirement to use Python 3.10 from your PR. Actually, we try to use Python 3.10 feature for the type annotation for the generation code as well in future. Is it possible to update Python version to 3.10 in your PR?
@JonathanPlasse
Ah, I got it. Thank you for your explanation.
@nutti @JonathanPlasse Thanks for the comments and review!
I have confirmed that this change works correctly in my environment.
- FROM python:3.9-bullseye
+ FROM python:3.10-bullseye
Purpose of the pull request
Due to the update of the Python version from 3.8 to 3.9 in GitHub Actions dependencies in commit 782a482d4eb5e48ab932cc0e3d60fcbbcb435a72, we need to update the Python version locally to align with the GitHub Actions environment.
Description about the pull request
tools/gen_module/Dockerfile
from 3.8 to 3.9.docs/generate_modules.md
.