diff --git a/pyproject.toml b/pyproject.toml index 297cc10..7a4391d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -34,9 +34,9 @@ classifiers = [ "Topic :: Software Development :: Build Tools", ] dependencies = [ - "python-dateutil >= 2.8, < 2.10", + "python-dateutil >= 2.8, < 5.0", "python-fsutil >= 0.16.0, < 1.0.0", - "python-slugify >= 7.0.0, < 9.0.0", + "python-slugify >= 7.0.0, < 10.0.0", ] dynamic = ["version"] requires-python = ">=3.11" diff --git a/src/codicefiscale/codicefiscale.py b/src/codicefiscale/codicefiscale.py index d5fd7b2..de296fe 100644 --- a/src/codicefiscale/codicefiscale.py +++ b/src/codicefiscale/codicefiscale.py @@ -139,7 +139,7 @@ def _get_date( } ) try: - date_obj = date_parser.parse( + date_obj: datetime = date_parser.parse( date_slug, parserinfo=date_parser.parserinfo(**date_parser_options), )