apiclient-pydantic-generator
apiclient-pydantic-generator copied to clipboard
typing.Any import not added to client for endpoints returning Any
Here's what gets generated in the client.py for the endpoint:
def status_status_get(self, **kwargs) -> Any:
"""Status"""
return self.get(Endpoints.status_status_get)
There's no from typing import Any at the top of client.py
openapi json path
"/status": {
"get": {
"summary": "Status",
"operationId": "status_status_get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
}
}
}
},