File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ def _parse_bool_arg(arg: str | bytes | bool) -> bool:
55
55
raise ValueError (f"Invalid boolean argument: { arg } " )
56
56
57
57
58
- def add_args_from_model (parser : argparse .ArgumentParser , model : type [BaseModel ]):
58
+ def add_args_from_model (parser : argparse .ArgumentParser , model : Type [BaseModel ]):
59
59
"""Add arguments from a pydantic model to an argparse parser."""
60
60
61
61
for name , field in model .model_fields .items ():
@@ -83,7 +83,7 @@ def add_args_from_model(parser: argparse.ArgumentParser, model: type[BaseModel])
83
83
)
84
84
85
85
86
- T = TypeVar ("T" , bound = type [BaseModel ])
86
+ T = TypeVar ("T" , bound = Type [BaseModel ])
87
87
88
88
89
89
def parse_model_from_args (model : T , args : argparse .Namespace ) -> T :
You can’t perform that action at this time.
0 commit comments