Skip to content

5.0.0

Latest

Choose a tag to compare

@chris48s chris48s released this 08 Jul 08:13

Breaking

  • Removed Region Enum.
  • Removed SOPN_PUBLISH_DATE value from the TimetableEvent enum. Replaced by CLOSE_OF_NOMINATIONS and SOPN_PUBLISH_DEADLINE.
  • Removed SOPN_PUBLISH_DATE event from the Election.timetable dict.
  • Removed days_before function. Replaced by days_diff.

Added

  • Added notice_of_election_deadline property.
  • Added separate properties for close_of_nominations and sopn_publish_deadline. The sopn_publish_date is now a deprecated alias for close_of_nominations.

Fixed

  • Correctly handle Easter Monday for Scottish Parliament and Local elections in Scotland. Easter Monday is not usually a bank holiday in Scotland but some legislation considers it a "non-working" day in Scotland anyway.
  • Fixed various incorrect docstrings.
  • BankHolidayCalendar objects no longer contain Christmas Eve.

Pull Requests

Full Changelog: 4.4.0...5.0.0