You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
pendulum.now() type hint doesn't allow datetime.timezone #783
The type hint for pendulum.now doesn't permit datetime.timezone a valid input, even though it appears to be valid for the underlying DateTime.now function:
The type hint for
pendulum.nowdoesn't permitdatetime.timezonea valid input, even though it appears to be valid for the underlyingDateTime.nowfunction:https://github.com/sdispater/pendulum/blob/3e3fec6a5b66759078c5ae39c736ca95b78adbef/src/pendulum/__init__.py#L247
https://github.com/sdispater/pendulum/blob/3e3fec6a5b66759078c5ae39c736ca95b78adbef/src/pendulum/datetime.py#L158-L160
Is this deliberate, or an oversight?