File tree Expand file tree Collapse file tree 1 file changed +3
-23
lines changed Expand file tree Collapse file tree 1 file changed +3
-23
lines changed Original file line number Diff line number Diff line change 33from pydantic import ConfigDict , Field
44
55from cmdcomp .model import Model
6- from cmdcomp .v2 .command .argument .command_argument import V2CommandArgument
7- from cmdcomp .v2 .command .argument .file_argument import V2FileArgument
86from cmdcomp .v2 .command .argument .flag_argument import V2FlagArgument
97from cmdcomp .v2 .command .argument .values_argument import (
108 V2ValueArgument ,
@@ -37,13 +35,7 @@ class V2PoristionalArgumentsCommand(Model):
3735 arguments : Annotated [
3836 OrderedDict [
3937 Position | Literal ["*" ] | Keyword ,
40- str
41- | list [str ]
42- | V2ValuesArgument
43- | V2FileArgument
44- | V2CommandArgument
45- | V2FlagArgument
46- | None ,
38+ str | list [str ] | V2Argument | None ,
4739 ],
4840 Field (
4941 title = "arguments of the command." ,
@@ -138,13 +130,7 @@ class V2SubcommandsCommand(Model):
138130 arguments : Annotated [
139131 OrderedDict [
140132 Keyword ,
141- str
142- | list [str ]
143- | V2ValuesArgument
144- | V2FileArgument
145- | V2CommandArgument
146- | V2FlagArgument
147- | None ,
133+ str | list [str ] | V2Argument | None ,
148134 ],
149135 Field (
150136 title = "arguments of the command." ,
@@ -212,13 +198,7 @@ def has_keyword_arguments(self) -> bool:
212198
213199
214200def _convert_argument (
215- value : str
216- | list [str ]
217- | V2ValuesArgument
218- | V2FileArgument
219- | V2CommandArgument
220- | V2FlagArgument
221- | None ,
201+ value : str | list [str ] | V2Argument | None ,
222202) -> V2Argument :
223203 match value :
224204 case str ():
You can’t perform that action at this time.
0 commit comments