stub42 / pytz

pytz Python historical timezone library and database
MIT License
353 stars 93 forks source link

_FixedOffset Base Class #82

Open AlecRosenbaum opened 2 years ago

AlecRosenbaum commented 2 years ago

While most timezone classes share a BaseTzInfo class, _FixedOffset does not. Functionally it doesn't really make a difference, but with stricter type checking it can become troublesome. Some interfaces from third-party projects specify BaseTzInfo within type annotations where _FixedOffset should also work.

Would you be open to a change that just replaces class _FixedOffset(datetime.tzinfo): with class _FixedOffset(BaseTzInfo):?