File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed
Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -25,9 +25,7 @@ def generate_result_types_module(
2525 module : ast .Module ,
2626 operation_definition : ExecutableDefinitionNode , # noqa: ARG002
2727 ) -> ast .Module :
28- module = self .insert_future_annotation (module )
29-
30- return module
28+ return self .insert_future_annotation (module )
3129
3230
3331class StandardTypeHintPlugin (Plugin ):
@@ -61,9 +59,7 @@ def generate_result_types_module(
6159 operation_definition : ExecutableDefinitionNode , # noqa: ARG002
6260 ) -> ast .Module :
6361 module = FutureAnnotationPlugin .insert_future_annotation (module )
64- module = self .replace_list_annotations (module )
65-
66- return module
62+ return self .replace_list_annotations (module )
6763
6864
6965class PydanticBaseModelPlugin (Plugin ):
@@ -87,6 +83,4 @@ def generate_result_types_module(
8783 module : ast .Module ,
8884 operation_definition : ExecutableDefinitionNode , # noqa: ARG002
8985 ) -> ast .Module :
90- module = self .replace_base_model_import (module )
91-
92- return module
86+ return self .replace_base_model_import (module )
You can’t perform that action at this time.
0 commit comments