Skip to content

Method pendulum.tz.timezone shadows module pendulum.tz.timezone #241

Open

Description

@labrys

This causes issues with type-hinting when trying to add pendulum.tz.timezone.Timezone type-hints.

Activity

  1. computercolin commented on Dec 16, 2023

    @computercolin

    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.

  2. tyteen4a03 commented on Jul 13, 2024

    @tyteen4a03

    What is the fix for this?

  3. added this to the Pendulum 3.2 milestone on Apr 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions