Skip to content

Commit

Permalink
fix formatting and python incompatibilty
Browse files Browse the repository at this point in the history
  • Loading branch information
sh-rp committed Apr 29, 2024
1 parent d9a73eb commit 22e6f1d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion openapi_python_client/parser/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def schema_and_name_from_reference(self, ref: Union[osp.Reference, osp.Schema])
name = name or schema.title
return name, schema

def response_from_reference(self, ref: osp.Reference | osp.Response) -> osp.Response:
def response_from_reference(self, ref: Union[osp.Reference, osp.Response]) -> osp.Response:
if isinstance(ref, osp.Response):
return ref
return osp.Response.parse_obj(self._component_from_reference(ref))
Expand Down
1 change: 1 addition & 0 deletions tests/test___main__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# type: ignore


def test_main(mocker):
app = mocker.patch("openapi_python_client.cli.app")

Expand Down

0 comments on commit 22e6f1d

Please sign in to comment.