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 CHANGED
@@ -63,7 +63,7 @@ def create_duty(
63
63
 
64
64
 
65
65
  @overload
66
- def duty(**kwargs: Any) -> Callable[[Callable], Duty]: ... # type: ignore[overload-overlap]
66
+ def duty(**kwargs: Any) -> Callable[[Callable], Duty]: ...
67
67
 
68
68
 
69
69
  @overload
duty/tools/_griffe.py CHANGED
@@ -221,6 +221,6 @@ class griffe(Tool): # noqa: N801
221
221
  return cls(cli_args)
222
222
 
223
223
  def __call__(self) -> int:
224
- from griffe.cli import main as run_griffe
224
+ from griffe import main as run_griffe
225
225
 
226
226
  return run_griffe(self.cli_args)
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], # noqa: S603
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 as eval_type # type: ignore[attr-defined]
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,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: duty
3
- Version: 1.4.0
3
+ Version: 1.4.1
4
4
  Summary: A simple task runner.
5
5
  Keywords: task-runner,task,runner,cross-platform
6
6
  Author-Email: =?utf-8?q?Timoth=C3=A9e_Mazzucotelli?= <dev@pawamoy.fr>
@@ -1,7 +1,7 @@
1
- duty-1.4.0.dist-info/METADATA,sha256=-Slc5ZJnaArw095POkMTHNg-UyEIXgCzE79Iu--xWZc,2900
2
- duty-1.4.0.dist-info/WHEEL,sha256=vnE8JVcI2Wz7GRKorsPArnBdnW2SWKWGow5gu5tHlRU,90
3
- duty-1.4.0.dist-info/entry_points.txt,sha256=gxDUGvj_bg7DA77MogNmnGQSc2__ri9kAEp2RJ1p60Q,40
4
- duty-1.4.0.dist-info/licenses/LICENSE,sha256=nQxdYSduhkgEpOTmg4yyIMmFPzcr2qrlUl8Tf9QZPug,754
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=1IVYNOeVhLv4OkFtXAXcFKyy8xypfQBh3WM8aJLKohU,2986
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=ZMmreXk6iQbXtoiObwyPEWiQ5P89BpRDg-A00isvr_A,7944
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=9GTG4lgN1SJQFP_tg2CmqYo5hh735KkYWG8CevmavQU,15226
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=1teu9-04anIShuOeWVcqhXLfvWOFKTSRdrclsGMZxdU,8052
53
- duty-1.4.0.dist-info/RECORD,,
52
+ duty/validation.py,sha256=NbinkhQGsfnL4ZqjMoWZgv5GxmNQ0qMDhE6pWxLxuM4,8183
53
+ duty-1.4.1.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: pdm-backend (2.3.0)
2
+ Generator: pdm-backend (2.3.3)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any