phantom-types icon indicating copy to clipboard operation
phantom-types copied to clipboard

Replacing `tzinfo=None` still considered TZAware

Open aiven-anton opened this issue 3 years ago • 0 comments

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

aiven-anton avatar Oct 14 '22 07:10 aiven-anton