apiclient-pydantic-generator icon indicating copy to clipboard operation
apiclient-pydantic-generator copied to clipboard

typing.Any import not added to client for endpoints returning Any

Open brunnels opened this issue 3 years ago • 0 comments

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": {}
              }
            }
          }
        }
      }
    },

brunnels avatar Mar 03 '22 16:03 brunnels