Skip to content

Commit 8978e6c

Browse files
committed
remove unused type_string check in ModelProperty
1 parent 843ef7f commit 8978e6c

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

openapi_python_client/parser/properties/model_property.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,6 @@ def get_type_string(
116116

117117
if type_string == self.class_info.name:
118118
type_string = f"'{type_string}'"
119-
if type_string == f"List[{self.class_info.name}]":
120-
type_string = f"List['{self.class_info.name}']"
121119

122120
if no_optional or (self.required and not self.nullable):
123121
return type_string

0 commit comments

Comments
 (0)