duty 1.4.0__py3-none-any.whl → 1.4.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- duty/decorator.py +1 -1
- duty/tools/_griffe.py +1 -1
- duty/tools/_ruff.py +2 -2
- duty/validation.py +6 -2
- {duty-1.4.0.dist-info → duty-1.4.1.dist-info}/METADATA +1 -1
- {duty-1.4.0.dist-info → duty-1.4.1.dist-info}/RECORD +9 -9
- {duty-1.4.0.dist-info → duty-1.4.1.dist-info}/WHEEL +1 -1
- {duty-1.4.0.dist-info → duty-1.4.1.dist-info}/entry_points.txt +0 -0
- {duty-1.4.0.dist-info → duty-1.4.1.dist-info}/licenses/LICENSE +0 -0
duty/decorator.py
CHANGED
duty/tools/_griffe.py
CHANGED
duty/tools/_ruff.py
CHANGED
|
@@ -441,8 +441,8 @@ class ruff(Tool): # noqa: N801
|
|
|
441
441
|
return cls(cli_args)
|
|
442
442
|
|
|
443
443
|
def __call__(self) -> int:
|
|
444
|
-
process = subprocess.run(
|
|
445
|
-
[_find_ruff(), *self.cli_args],
|
|
444
|
+
process = subprocess.run( # noqa: S603
|
|
445
|
+
[_find_ruff(), *self.cli_args],
|
|
446
446
|
capture_output=True,
|
|
447
447
|
text=True,
|
|
448
448
|
check=False,
|
duty/validation.py
CHANGED
|
@@ -10,7 +10,7 @@ from __future__ import annotations
|
|
|
10
10
|
import sys
|
|
11
11
|
import textwrap
|
|
12
12
|
from contextlib import suppress
|
|
13
|
-
from functools import cached_property
|
|
13
|
+
from functools import cached_property, partial
|
|
14
14
|
from inspect import Parameter, Signature, signature
|
|
15
15
|
from typing import Any, Callable, ForwardRef, Sequence, Union, get_args, get_origin
|
|
16
16
|
|
|
@@ -21,8 +21,12 @@ if sys.version_info < (3, 10):
|
|
|
21
21
|
union_types = (Union,)
|
|
22
22
|
else:
|
|
23
23
|
from types import UnionType
|
|
24
|
-
from typing import _eval_type
|
|
24
|
+
from typing import _eval_type # type: ignore[attr-defined]
|
|
25
25
|
|
|
26
|
+
if sys.version_info >= (3, 13):
|
|
27
|
+
eval_type = partial(_eval_type, type_params=None)
|
|
28
|
+
else:
|
|
29
|
+
eval_type = _eval_type
|
|
26
30
|
union_types = (Union, UnionType)
|
|
27
31
|
|
|
28
32
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
duty-1.4.
|
|
2
|
-
duty-1.4.
|
|
3
|
-
duty-1.4.
|
|
4
|
-
duty-1.4.
|
|
1
|
+
duty-1.4.1.dist-info/METADATA,sha256=1wigefIsobyKgAGeOPfdCJj6Ni4ZK9CfK3oW1ZQGE8o,2900
|
|
2
|
+
duty-1.4.1.dist-info/WHEEL,sha256=rSwsxJWe3vzyR5HCwjWXQruDgschpei4h_giTm0dJVE,90
|
|
3
|
+
duty-1.4.1.dist-info/entry_points.txt,sha256=gxDUGvj_bg7DA77MogNmnGQSc2__ri9kAEp2RJ1p60Q,40
|
|
4
|
+
duty-1.4.1.dist-info/licenses/LICENSE,sha256=nQxdYSduhkgEpOTmg4yyIMmFPzcr2qrlUl8Tf9QZPug,754
|
|
5
5
|
duty/__init__.py,sha256=2fdBMNEBXYSCnV1GQm56VGe8VuvMp79-Hj3SHrAb5MM,144
|
|
6
6
|
duty/__main__.py,sha256=4YvloGDKmyVzOsE6ZdyCQyY0Jsl0LSlbqkO2UDExgmI,333
|
|
7
7
|
duty/callables/__init__.py,sha256=R42f1qpIy7m2MMbs6Xc_OnQiEARr4g2Pghpp9ry4JFI,1042
|
|
@@ -27,7 +27,7 @@ duty/cli.py,sha256=9uca96F31uTzWJuREU0ReWGhXntvjQaoSW6ZkUxBTV4,8521
|
|
|
27
27
|
duty/collection.py,sha256=cri--t6aUmOw3c17yCy9tAp_ceHfEQMhf4tMqPssNa0,6590
|
|
28
28
|
duty/context.py,sha256=T5PNPY6lqXQ088EriWljveFn1SWfrQNVicFbDcnk0GU,3191
|
|
29
29
|
duty/debug.py,sha256=9stdqxNJ9zA2HWsYfmy3C9BrWOXLlHYRGsQ6dHfCUfM,2813
|
|
30
|
-
duty/decorator.py,sha256=
|
|
30
|
+
duty/decorator.py,sha256=0FLcTH4nMKHR1MDzZ7PXrblsxu-2m-OVh6Pc_h9T8v8,2952
|
|
31
31
|
duty/exceptions.py,sha256=gTtqtqOiMroP5-83kC5jakuwBfYKpzCQHE9RWfAGRv0,358
|
|
32
32
|
duty/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
33
33
|
duty/tools/__init__.py,sha256=soQxh0HEwSV5zZhfv5DEIpBonk53-JRE0YvcXfWvPI8,1179
|
|
@@ -39,15 +39,15 @@ duty/tools/_build.py,sha256=QbOZzeR9T_mWkF9poalOkCWuYe22E1liMUC7aBQTJ5k,2567
|
|
|
39
39
|
duty/tools/_coverage.py,sha256=UKCu-DLyW_-en_Hn9qsh4kXyfrL7DK82VOw9Hblkh_g,26341
|
|
40
40
|
duty/tools/_flake8.py,sha256=ZmV_1Hy773fzP40LDNmj8YJslWatldl0qfr_g2pcgrI,9371
|
|
41
41
|
duty/tools/_git_changelog.py,sha256=rqpNDt2xoEKePQHxtQ3ReumsSjrcvUlaop1NsO_w-9E,8247
|
|
42
|
-
duty/tools/_griffe.py,sha256=
|
|
42
|
+
duty/tools/_griffe.py,sha256=X1u0wCVMDJS7IF3fGSnyd-kx6zNBUKP48Yk8uPztuLs,7940
|
|
43
43
|
duty/tools/_interrogate.py,sha256=7A9qlWsoQRk2NUlJzE_0_OiG5Infl5IF8ehEiWfqZno,5730
|
|
44
44
|
duty/tools/_isort.py,sha256=VbQbK4iPVNWNYlmOPDEnEcFVB6fJ66W-8s36bS9HziQ,28352
|
|
45
45
|
duty/tools/_mkdocs.py,sha256=GfhXUScTjGQK5Djg6fAGtLSSssdbhebL2AonG5FGPV0,9027
|
|
46
46
|
duty/tools/_mypy.py,sha256=6La6BTfTfMlpA4-JO8dn1O0QQ1zaVEUEp5M6cRmPr7k,21555
|
|
47
47
|
duty/tools/_pytest.py,sha256=HG5jmRbdCKMK6-6i8cDd4MZ1CsDhHa0TQyjls0vy1WU,20064
|
|
48
|
-
duty/tools/_ruff.py,sha256=
|
|
48
|
+
duty/tools/_ruff.py,sha256=g8zh9LLEql5ZV-0wAQMc_XjUcsOm9Euz_M-oGJtvWts,15226
|
|
49
49
|
duty/tools/_safety.py,sha256=3kQOko-z07w8S-zq3Qs1FdVXSdY3F13QgRsx1NPPxOg,3141
|
|
50
50
|
duty/tools/_ssort.py,sha256=xhh5eYq16BC8KTSKDCxA10mR8RZoQuN10-xUjhu3QlE,1097
|
|
51
51
|
duty/tools/_twine.py,sha256=9y7-X9fqZ6wbOddGtxBMePI7hgq9QldYyMHxRBy_JXg,10347
|
|
52
|
-
duty/validation.py,sha256=
|
|
53
|
-
duty-1.4.
|
|
52
|
+
duty/validation.py,sha256=NbinkhQGsfnL4ZqjMoWZgv5GxmNQ0qMDhE6pWxLxuM4,8183
|
|
53
|
+
duty-1.4.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|