Skip to content

Replacing tzinfo=None still considered TZAware #241

@aiven-anton

Description

@aiven-anton
from phantom.datetime import TZAware
import datetime

t = TZAware.parse(datetime.datetime.now(tz=datetime.timezone.utc))
u = t.replace(tzinfo=None)
reveal_type(u)  # -> TZAware

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