Skip to content

Commit 36b00ed

Browse files
committed
remove unused type_string checks in Property
1 parent f1ca683 commit 36b00ed

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

openapi_python_client/parser/properties/property.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,6 @@ def get_type_string(
9393
else:
9494
type_string = self.get_base_type_string(quoted=quoted)
9595

96-
if quoted and model_parent:
97-
if type_string == model_parent.class_info.name:
98-
type_string = f"'{type_string}'"
99-
if type_string == f"List[{model_parent.class_info.name}]":
100-
type_string = f"List['{model_parent.class_info.name}']"
101-
10296
if no_optional or (self.required and not self.nullable):
10397
return type_string
10498
if self.required and self.nullable:

0 commit comments

Comments
 (0)