Skip to content

Commit 691fc5b

Browse files
committed
Fix coverage gaps
1 parent 5ee3278 commit 691fc5b

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

openapi_python_client/parser/openapi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ def _add_responses(
200200

201201
# No reasons to use lazy imports in endpoints, so add lazy imports to relative here.
202202
for media_type in response.content:
203-
if not media_type.prop:
203+
if not media_type.prop: # pragma: no cover
204204
continue
205205
endpoint.relative_imports |= media_type.prop.get_lazy_imports(prefix=models_relative_prefix)
206206
endpoint.relative_imports |= media_type.prop.get_imports(prefix=models_relative_prefix)

openapi_python_client/parser/properties/protocol.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,6 @@ class PropertyProtocol(Protocol):
6666
def type_string(self) -> str:
6767
return self.get_type_string()
6868

69-
@property
70-
def instance_type_string(self) -> str:
71-
return self.get_instance_type_string()
72-
7369
@abstractmethod
7470
def convert_value(self, value: Any) -> Value | None | PropertyError:
7571
"""Convert a string value to a Value object"""

0 commit comments

Comments
 (0)