@@ -37,7 +37,7 @@ class {name or cls.__name__}:
37
37
"""
38
38
39
39
40
- def generate_pydantic_model_docstring (cls : type [BaseModel ], name : str ) -> str :
40
+ def generate_pydantic_model_docstring (cls : type [BaseModel ], name : str ) -> str : # no cov # TODO: unignore once used
41
41
formatted_annotations = "\n " .join (
42
42
format_annotation_from_field_info (field_name , field_info ) for field_name , field_info in cls .model_fields .items ()
43
43
)
@@ -56,7 +56,9 @@ class {name}(BaseModel):
56
56
"""
57
57
58
58
59
- def format_annotation_from_field_info (field_name : str , field_info : FieldInfo ) -> str :
59
+ def format_annotation_from_field_info (
60
+ field_name : str , field_info : FieldInfo
61
+ ) -> str : # no cov # TODO: unignore once used
60
62
annotation = field_name
61
63
if field_info .annotation :
62
64
annotation += f": '{ annotation_to_str (field_info .annotation )} '"
@@ -65,7 +67,9 @@ def format_annotation_from_field_info(field_name: str, field_info: FieldInfo) ->
65
67
return annotation
66
68
67
69
68
- def format_pydantic_field_docstring (field_name : str , field_info : FieldInfo ) -> str :
70
+ def format_pydantic_field_docstring (
71
+ field_name : str , field_info : FieldInfo
72
+ ) -> str : # no cov # TODO: unignore once used
69
73
arg_str = f"- **`{ field_name } `**"
70
74
if field_info .annotation :
71
75
arg_str += f" ({ annotation_to_str (field_info .annotation )} )"
0 commit comments