diff options
-rw-r--r-- | .pre-commit-config.yaml | 5 | ||||
-rw-r--r-- | setup.cfg | 2 | ||||
-rw-r--r-- | setup.py | 2 | ||||
-rw-r--r-- | src/isodate/duration.py | 2 |
4 files changed, 7 insertions, 4 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c00dfd9..05cc6be 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,4 +1,9 @@ repos: + - repo: https://github.com/asottile/pyupgrade + rev: v2.10.0 + hooks: + - id: pyupgrade + args: ["--py37-plus"] - repo: https://github.com/pycqa/flake8 rev: 3.9.1 diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 2a9acf1..0000000 --- a/setup.cfg +++ /dev/null @@ -1,2 +0,0 @@ -[bdist_wheel] -universal = 1 @@ -36,7 +36,7 @@ setup( "Programming Language :: Python :: 3.10", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Internet", - ("Topic :: Software Development :" ": Libraries :: Python Modules"), + "Topic :: Software Development :" ": Libraries :: Python Modules", ], test_suite="isodate.tests.test_suite", ) diff --git a/src/isodate/duration.py b/src/isodate/duration.py index 3803d1c..f771b54 100644 --- a/src/isodate/duration.py +++ b/src/isodate/duration.py @@ -38,7 +38,7 @@ def max_days_in_month(year, month): return 28 -class Duration(object): +class Duration: """ A class which represents a duration. |