Closed me-and closed 1 year ago
Thank you for reporting this issue! I'll try to fix it soon, with an appropriately qualified open-source definition of "soon"
No worries, thank you! I am painfully familiar with that set of qualifiers for my own OSS work…
@me-and Fixed & released.
Since I haven't got my commit-message automated script going yet, I will manually say: This fix was sponsored by Jason Walker, Moshez, and Matt Campbell, and other patrons over at https://www.patreon.com/creatorglyph. Remember to like and subscribe ;-)
The
datetime.astimezone
method, according to DateType, requires atz
argument. This doesn't match the behaviour in thedatetime
module: per https://docs.python.org/3/library/datetime.html#datetime.datetime.astimezone as of Python v3.3, omittingtz
or specifyingtz=None
will obtain the timezone to use from the OS.Test case below; everything works as expected at runtime, but mypy complains about the lack of
tz
argument when type checking: