[pytz] Add BaseTzInfo private attributes (#10733)

This commit is contained in:
Amin Alaee
2023-09-20 15:17:40 +02:00
committed by GitHub
parent ddebb83ea7
commit 11e51bef9d

View File

@@ -3,6 +3,8 @@ from abc import abstractmethod
from typing import Any, overload
class BaseTzInfo(datetime.tzinfo):
_utcoffset: datetime.timedelta | None
_tzname: str | None
zone: str | None # Actually None but should be set on concrete subclasses
# The following abstract methods don't exist in the implementation, but
# are implemented by all sub-classes.