python-calendarweek issueshttps://mirabilos.edugit.org/AlekSIS/libs/python-calendarweek/-/issues2023-01-02T15:02:12Zhttps://mirabilos.edugit.org/AlekSIS/libs/python-calendarweek/-/issues/8Inconsistent return value/type2023-01-02T15:02:12ZmagicfelixInconsistent return value/typeWhile `from_date`, `get_last_week_of_year` and `weeks_within` return a (`Sequence` of) `CalendarWeek`, `current_week` returns an `int`.
My proposal is to also let `current_week` also return a `CalendarWeek`. That way, the week number (w...While `from_date`, `get_last_week_of_year` and `weeks_within` return a (`Sequence` of) `CalendarWeek`, `current_week` returns an `int`.
My proposal is to also let `current_week` also return a `CalendarWeek`. That way, the week number (which is currently returned), can still be accessed very easily (using `.week`), and the information is more complete.
This would probably require a major version jump, because it's a breaking change.https://mirabilos.edugit.org/AlekSIS/libs/python-calendarweek/-/issues/1Add tests2020-01-14T15:42:02ZNik | Klampfradlerdominik.george@teckids.orgAdd testsNik | Klampfradlerdominik.george@teckids.orgNik | Klampfradlerdominik.george@teckids.org