pendulum
pendulum copied to clipboard
Method `pendulum.tz.timezone` shadows module `pendulum.tz.timezone`
This causes issues with type-hinting when trying to add pendulum.tz.timezone.Timezone type-hints.
This is a problem. This also prevents isinstance(x, pendulum.tz.timezone.Timezone) from working as desired.
Luckily it seems it is being addressed. In 3.0.0b1, the above works.
At least in later versions of v2
pendulum.tz._Timezone
pendulum.tz._FixedTimezone
can be used. However, the base class, PendulumTimezone is not available.
What is the fix for this?