Skip to content

[mypy] Explicit re-export #695

@AdrienPensart

Description

@AdrienPensart
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • I have searched the documentation and believe that my question is not covered.

Feature Request

Hello / Salut!

I have two minor issues when using static typing tool :

error: "Module pendulum" does not explicitly export attribute "timezone" [attr-defined]
canada = pendulum.timezone("America/Toronto")
^~~~~~~~~~~~~~~~~
error: Name "pendulum.Period" is not defined [name-defined]
delta: pendulum.Period = time_spent[1] - time_spent[0]
^

Is is possible to explicitely re-export all needed / most-used symbols in pendulum/init.py ?

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions