Fix datetime imports
Committed f29a25
--- a/web/dt.py
+++ b/web/dt.py
import pendulum
-import pendulum.datetime
+from pendulum.datetime import DateTime
__all__ = ["parse_dt", "now"]
-def parse_dt(dt: str, **options) -> pendulum.datetime.DateTime:
+def parse_dt(dt: str, **options) -> DateTime:
"""Parse `dt` and return a datetime object."""
return pendulum.parser.parse(dt, **options)
-def now() -> pendulum.datetime.DateTime:
+def now() -> DateTime:
"""Return the current datetime."""
return pendulum.now("UTC")