Skip to content

Add abstract methods to BaseTzInfo#6579

Merged
srittau merged 3 commits into
python:masterfrom
srittau:pytz
Dec 14, 2021
Merged

Add abstract methods to BaseTzInfo#6579
srittau merged 3 commits into
python:masterfrom
srittau:pytz

Conversation

@srittau
Copy link
Copy Markdown
Collaborator

@srittau srittau commented Dec 13, 2021

While these abstract methods don't exist at runtime, all sub-classes of
BaseTzInfo implement them. It can be useful to annotate variables with
BaseTzInfo and being able to call these methods on it.

Cf #6551

While these abstract methods don't exist at runtime, all sub-classes of
BaseTzInfo implement them. It can be useful to annotate variables with
BaseTzInfo and being able to call these methods on it.
Comment thread stubs/pytz/pytz/tzinfo.pyi Outdated
@srittau srittau merged commit 968fd6d into python:master Dec 14, 2021
@srittau srittau deleted the pytz branch December 14, 2021 13:14
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