Skip to content

pytz lint #7

@kbehlers

Description

@kbehlers

I'm interested in pytz linting, specifically preventing pytz timezone classes (BaseTzInfo) from being used directly as the tzinfo argument with datetime.datetime(tzinfo=) and with .replace(tzinfo=), since that is almost always an error.

Would you be open to a PR adding pytz added as a dependency and checks around those cases?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions