Skip to content

Make BaseTzInfo inherited methods pos-only #13650

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 1 commit into from
Mar 18, 2025

Conversation

srittau
Copy link
Collaborator

@srittau srittau commented Mar 17, 2025

These methods are already positional-only in base class datetime.tzinfo and don't exist in the implementation class. Leaving them pos-or-kw fails stubtest when running with Python 3.13.

These methods are already positional-only in `datetime.tzinfo`. Leaving
them pos-or-kw fail stubtest when running with Python 3.13.
Copy link
Contributor

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

@hauntsaninja hauntsaninja merged commit 089bbcb into python:main Mar 18, 2025
43 checks passed
@srittau srittau deleted the pytz-tzinfo branch March 18, 2025 00:22
mmingyu pushed a commit to mmingyu/typeshed that referenced this pull request May 16, 2025
These methods are already positional-only in `datetime.tzinfo`. Leaving
them pos-or-kw fail stubtest when running with Python 3.13.
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.

2 participants