The Pendulum team is pleased to announce the immediate availability of Pendulum 2.1.0.
This release is mostly a bugfix release with some small changes that are not backwards incompatible.
New features
- Added better typing and PEP-561 compliance (#320).
- Added the
is_anniversary()method as an alias ofis_birthday()(#298).
Changes
- Dropped support for Python 3.4.
is_utc()will now returnTruefor any datetime with an offset of 0, similar to the behavior in the1.*versions (#295)Duration.in_words()will now return0 millisecondsfor empty durations.
Fixes
- Fixed various issues with timezone transitions for some edge cases (#321, #350).
- Fixed out of bound detection for
nth_of("month")(#357). - Fixed an error where extra text was accepted in
from_format()(#372). - Fixed a recursion error when adding time to a
DateTimewith a fixed timezone (#431). - Fixed errors where
Periodinstances were not properly compared to other classes, especiallytimedeltainstances (#427). - Fixed deprecation warnings due to internal regexps (#427).
- Fixed an error where the
test()helper would not unset the test instance when an exception was raised (#445). - Fixed an error where the
week_of_monthattribute was not returning the correct value (#446). - Fixed an error in the way the
ZISO-8601 UTC designator was not parsed as UTC (#448).
Locales
- Added the
nllocale. - Added the
itlocale. - Added the
idlocale. - Added the
nblocale. - Added the
nnlocale.