bookwyrm/bookwyrm/utils
Adeodato Simó 4b47646e28
Fix typing hints in sealed_date module
In particular, SealedDate's class methods always return an instance
of the class they're invoked through (i.e., `SealedDate.from_date_parts`
intentionally never returns `MonthSeal` or `YearSeal`).

To propertly annotate this, a type variable is needed (or the much
simpler `Self` in Python 3.11).
2023-10-24 17:29:04 -03:00
..
__init__.py More pylint fixes 2021-06-18 14:29:24 -07:00
cache.py Revert return type for get_or_set 2023-09-13 10:21:30 +02:00
isni.py Remove returned None to make pylint happy 2023-08-21 14:00:09 +02:00
log.py Type annotations for utils 2023-08-21 12:56:32 +02:00
regex.py Parse hashtags and store them in CreateStatus view 2023-03-07 12:55:36 +01:00
sanitizer.py Sanitise description from Open Library 2023-08-02 19:30:40 +02:00
sealed_date.py Fix typing hints in sealed_date module 2023-10-24 17:29:04 -03:00
validate.py Type annotations for utils 2023-08-21 12:56:32 +02:00