From 3a6cd95389dfe1c93684aa083a6e3db408269fdb Mon Sep 17 00:00:00 2001 From: Jad Chaar Date: Sat, 30 Sep 2023 14:04:59 -0700 Subject: [PATCH] Add python dateutil types --- .pre-commit-config.yaml | 2 +- requirements/requirements.txt | 1 + setup.cfg | 2 +- setup.py | 5 ++++- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b8a60a2c..b99f4c48 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -22,7 +22,7 @@ repos: hooks: - id: isort - repo: https://github.com/asottile/pyupgrade - rev: v3.10.1 + rev: v3.13.0 hooks: - id: pyupgrade args: [--py36-plus] diff --git a/requirements/requirements.txt b/requirements/requirements.txt index 65134a19..7d97ff8e 100644 --- a/requirements/requirements.txt +++ b/requirements/requirements.txt @@ -1 +1,2 @@ python-dateutil>=2.7.0 +types-python-dateutil>=2.8.10 diff --git a/setup.cfg b/setup.cfg index 6ffbd02b..916477e5 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,5 +1,5 @@ [mypy] -python_version = 3.6 +python_version = 3.11 show_error_codes = True pretty = True diff --git a/setup.py b/setup.py index a2d8921e..d58b9f3b 100644 --- a/setup.py +++ b/setup.py @@ -22,7 +22,10 @@ package_data={"arrow": ["py.typed"]}, zip_safe=False, python_requires=">=3.8", - install_requires=["python-dateutil>=2.7.0"], + install_requires=[ + "python-dateutil>=2.7.0", + "types-python-dateutil>=2.8.10", + ], classifiers=[ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers",