Skip to content

Make BaseTzInfo inherited methods pos-only - #13650

Merged
hauntsaninja merged 1 commit into
python:mainfrom
srittau:pytz-tzinfo
Mar 18, 2025
Merged

hauntsaninja merged 1 commit into
python:mainfrom
srittau:pytz-tzinfo

Conversation

@srittau

@srittau srittau commented Mar 17, 2025 •

Copy link
Copy Markdown
Collaborator

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.
@github-actions

Copy link
Copy Markdown
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
@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