A type wrapper for the standard library `datetime` that supplies stricter checks, such as making 'datetime' not substitutable for 'date', and separating out Naive and Aware datetimes into separate, mutually-incompatible types.
DateType is a workaround for this
bug to demonstrate that we could
have a type-checking-time wrapper for
datetime that doesn't change (or almost
doesn't change) the implementation, but fixes up two very annoying behaviors of
datetimenow won't type-check as a
date- it still inherits at runtime (the implementation is, after all, not changed) but it doesn't inherit at type-time.
there are separate types for naive and aware
There's a very small bit of implementation glue (concrete
construction on the
Aware types, and a few functions that do
runtime checks to convert to/from stdlib types).
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Hashes for datetype-2022.12.7-py3-none-any.whl