Skip to content

Commit afcd7ff

Browse files
committed
fix: ci.
1 parent 39c24fb commit afcd7ff

File tree

7 files changed

+104
-69
lines changed

7 files changed

+104
-69
lines changed

.python-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.11.0
1+
3.13.0

cmdcomp/v2/command/base_command.py

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -53,43 +53,35 @@ def keyword_names_with_alias(self) -> list[Keyword]:
5353

5454
@property
5555
@abstractmethod
56-
def subcommands(self) -> OrderedDict[SubcommandName, "V2Command"]:
57-
...
56+
def subcommands(self) -> OrderedDict[SubcommandName, "V2Command"]: ...
5857

5958
@property
6059
@abstractmethod
61-
def positional_arguments(self) -> OrderedDict[Position, V2Argument]:
62-
...
60+
def positional_arguments(self) -> OrderedDict[Position, V2Argument]: ...
6361

6462
@property
6563
@abstractmethod
66-
def positional_wildcard_argument(self) -> V2Argument | None:
67-
...
64+
def positional_wildcard_argument(self) -> V2Argument | None: ...
6865

6966
@property
7067
@abstractmethod
71-
def keyword_arguments(self) -> OrderedDict[Keyword, V2Argument]:
72-
...
68+
def keyword_arguments(self) -> OrderedDict[Keyword, V2Argument]: ...
7369

7470
@property
7571
@abstractmethod
76-
def has_subcommands(self) -> bool:
77-
...
72+
def has_subcommands(self) -> bool: ...
7873

7974
@property
8075
@abstractmethod
81-
def has_positional_arguments(self) -> bool:
82-
...
76+
def has_positional_arguments(self) -> bool: ...
8377

8478
@property
8579
@abstractmethod
86-
def has_positional_wildcard_argument(self) -> bool:
87-
...
80+
def has_positional_wildcard_argument(self) -> bool: ...
8881

8982
@property
9083
@abstractmethod
91-
def has_keyword_arguments(self) -> bool:
92-
...
84+
def has_keyword_arguments(self) -> bool: ...
9385

9486

9587
def convert_argument(value: InputArgument | None) -> V2Argument:

cmdcomp/v2/command/delegate_command.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
from functools import cached_property
21
from typing import Annotated, Literal, OrderedDict
32

43
from pydantic import Field
@@ -53,7 +52,7 @@ def targets(self) -> list[str]:
5352
else:
5453
return self.target
5554

56-
@cached_property
55+
@property
5756
@override
5857
def keyword_arguments(self) -> OrderedDict[Keyword, V2Argument]:
5958
return OrderedDict(

cmdcomp/v2/command/positional_arguments_command.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
from functools import cached_property
21
from typing import TYPE_CHECKING, Annotated, Literal, OrderedDict
32

43
from pydantic import Field
@@ -38,7 +37,7 @@ class V2PositionalArgumentsCommand(V2BaseCommand):
3837
def subcommands(self) -> OrderedDict[SubcommandName, "V2Command"]:
3938
return OrderedDict()
4039

41-
@cached_property
40+
@property
4241
@override
4342
def positional_arguments(self) -> OrderedDict[Position, V2Argument]:
4443
return OrderedDict(
@@ -49,15 +48,15 @@ def positional_arguments(self) -> OrderedDict[Position, V2Argument]:
4948
]
5049
)
5150

52-
@cached_property
51+
@property
5352
@override
5453
def positional_wildcard_argument(self) -> V2Argument | None:
5554
if "*" in self.arguments:
5655
return convert_argument(self.arguments["*"])
5756
else:
5857
return None
5958

60-
@cached_property
59+
@property
6160
@override
6261
def keyword_arguments(self) -> OrderedDict[Keyword, V2Argument]:
6362
return OrderedDict(

cmdcomp/v2/command/subcommands_command.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
from functools import cached_property
21
from typing import TYPE_CHECKING, OrderedDict
32

43
from pydantic import Field
@@ -42,7 +41,7 @@ def positional_arguments(self) -> OrderedDict[Position, V2Argument]:
4241
def positional_wildcard_argument(self) -> V2Argument | None:
4342
return None
4443

45-
@cached_property
44+
@property
4645
@override
4746
def keyword_arguments(self) -> OrderedDict[Keyword, V2Argument]:
4847
return OrderedDict(
@@ -53,7 +52,7 @@ def keyword_arguments(self) -> OrderedDict[Keyword, V2Argument]:
5352
]
5453
)
5554

56-
@cached_property
55+
@property
5756
@override
5857
def subcommands(self) -> OrderedDict[SubcommandName, "V2Command"]:
5958
return OrderedDict(

0 commit comments

Comments
 (0)