Skip to content

Enhance ZoneInfo.from_file stub #14221

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

Merged
merged 2 commits into from
Jun 6, 2025

Conversation

hrimov
Copy link
Contributor

@hrimov hrimov commented Jun 5, 2025

As I understand, the difference between the versions (below 3.12 and above or equal) is due to the fact that Argument Clinic was added for the ZoneInfo specifically. I'm not really into the AC machinery, but I assume that starting from the 3.12 signature introspection prefers the native version over the Python implementation, so in runtime we have file_obj instead of fobj.

But let me know if I'm missing something and should approach this differently.

This comment has been minimized.

@hrimov
Copy link
Contributor Author

hrimov commented Jun 5, 2025

Stdlib stubtest failures seem not related to these changes and due to the latest Python patches

Copy link
Contributor

github-actions bot commented Jun 6, 2025

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@JelleZijlstra JelleZijlstra merged commit 971d6a3 into python:main Jun 6, 2025
64 checks passed
@hrimov hrimov deleted the python312/zoneinfo-from-file branch June 6, 2025 06:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants