forked from loafle/openapi-generator-original
python: enable more mypy checks 1/n (#17556)
* python: more mypy checks * mypy: check_untyped_defs * mypy: disallow_subclassing_any * mypy: disallow_untyped_decorators * mypy: disallow_any_generics
This commit is contained in:
@@ -18,7 +18,7 @@ from typing import Any, Dict, List, Optional, Tuple, Union
|
||||
from typing_extensions import Annotated
|
||||
|
||||
|
||||
from openapi_client.api_client import ApiClient
|
||||
from openapi_client.api_client import ApiClient, RequestSerialized
|
||||
from openapi_client.api_response import ApiResponse
|
||||
from openapi_client.rest import RESTResponseType
|
||||
|
||||
@@ -227,7 +227,7 @@ class AuthApi:
|
||||
_content_type,
|
||||
_headers,
|
||||
_host_index,
|
||||
) -> Tuple:
|
||||
) -> RequestSerialized:
|
||||
|
||||
_host = None
|
||||
|
||||
@@ -470,7 +470,7 @@ class AuthApi:
|
||||
_content_type,
|
||||
_headers,
|
||||
_host_index,
|
||||
) -> Tuple:
|
||||
) -> RequestSerialized:
|
||||
|
||||
_host = None
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ from typing_extensions import Annotated
|
||||
from openapi_client.models.pet import Pet
|
||||
from openapi_client.models.tag import Tag
|
||||
|
||||
from openapi_client.api_client import ApiClient
|
||||
from openapi_client.api_client import ApiClient, RequestSerialized
|
||||
from openapi_client.api_response import ApiResponse
|
||||
from openapi_client.rest import RESTResponseType
|
||||
|
||||
@@ -232,7 +232,7 @@ class BodyApi:
|
||||
_content_type,
|
||||
_headers,
|
||||
_host_index,
|
||||
) -> Tuple:
|
||||
) -> RequestSerialized:
|
||||
|
||||
_host = None
|
||||
|
||||
@@ -487,7 +487,7 @@ class BodyApi:
|
||||
_content_type,
|
||||
_headers,
|
||||
_host_index,
|
||||
) -> Tuple:
|
||||
) -> RequestSerialized:
|
||||
|
||||
_host = None
|
||||
|
||||
@@ -762,7 +762,7 @@ class BodyApi:
|
||||
_content_type,
|
||||
_headers,
|
||||
_host_index,
|
||||
) -> Tuple:
|
||||
) -> RequestSerialized:
|
||||
|
||||
_host = None
|
||||
|
||||
@@ -1033,7 +1033,7 @@ class BodyApi:
|
||||
_content_type,
|
||||
_headers,
|
||||
_host_index,
|
||||
) -> Tuple:
|
||||
) -> RequestSerialized:
|
||||
|
||||
_host = None
|
||||
|
||||
@@ -1303,7 +1303,7 @@ class BodyApi:
|
||||
_content_type,
|
||||
_headers,
|
||||
_host_index,
|
||||
) -> Tuple:
|
||||
) -> RequestSerialized:
|
||||
|
||||
_host = None
|
||||
|
||||
@@ -1573,7 +1573,7 @@ class BodyApi:
|
||||
_content_type,
|
||||
_headers,
|
||||
_host_index,
|
||||
) -> Tuple:
|
||||
) -> RequestSerialized:
|
||||
|
||||
_host = None
|
||||
|
||||
@@ -1843,7 +1843,7 @@ class BodyApi:
|
||||
_content_type,
|
||||
_headers,
|
||||
_host_index,
|
||||
) -> Tuple:
|
||||
) -> RequestSerialized:
|
||||
|
||||
_host = None
|
||||
|
||||
@@ -2113,7 +2113,7 @@ class BodyApi:
|
||||
_content_type,
|
||||
_headers,
|
||||
_host_index,
|
||||
) -> Tuple:
|
||||
) -> RequestSerialized:
|
||||
|
||||
_host = None
|
||||
|
||||
@@ -2383,7 +2383,7 @@ class BodyApi:
|
||||
_content_type,
|
||||
_headers,
|
||||
_host_index,
|
||||
) -> Tuple:
|
||||
) -> RequestSerialized:
|
||||
|
||||
_host = None
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ from typing_extensions import Annotated
|
||||
from pydantic import StrictBool, StrictInt, StrictStr
|
||||
from typing import Optional
|
||||
|
||||
from openapi_client.api_client import ApiClient
|
||||
from openapi_client.api_client import ApiClient, RequestSerialized
|
||||
from openapi_client.api_response import ApiResponse
|
||||
from openapi_client.rest import RESTResponseType
|
||||
|
||||
@@ -268,7 +268,7 @@ class FormApi:
|
||||
_content_type,
|
||||
_headers,
|
||||
_host_index,
|
||||
) -> Tuple:
|
||||
) -> RequestSerialized:
|
||||
|
||||
_host = None
|
||||
|
||||
@@ -607,7 +607,7 @@ class FormApi:
|
||||
_content_type,
|
||||
_headers,
|
||||
_host_index,
|
||||
) -> Tuple:
|
||||
) -> RequestSerialized:
|
||||
|
||||
_host = None
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ from pydantic import StrictBool, StrictInt, StrictStr, field_validator
|
||||
from typing import Optional
|
||||
from openapi_client.models.string_enum_ref import StringEnumRef
|
||||
|
||||
from openapi_client.api_client import ApiClient
|
||||
from openapi_client.api_client import ApiClient, RequestSerialized
|
||||
from openapi_client.api_response import ApiResponse
|
||||
from openapi_client.rest import RESTResponseType
|
||||
|
||||
@@ -295,7 +295,7 @@ class HeaderApi:
|
||||
_content_type,
|
||||
_headers,
|
||||
_host_index,
|
||||
) -> Tuple:
|
||||
) -> RequestSerialized:
|
||||
|
||||
_host = None
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ from typing_extensions import Annotated
|
||||
from pydantic import StrictInt, StrictStr, field_validator
|
||||
from openapi_client.models.string_enum_ref import StringEnumRef
|
||||
|
||||
from openapi_client.api_client import ApiClient
|
||||
from openapi_client.api_client import ApiClient, RequestSerialized
|
||||
from openapi_client.api_response import ApiResponse
|
||||
from openapi_client.rest import RESTResponseType
|
||||
|
||||
@@ -281,7 +281,7 @@ class PathApi:
|
||||
_content_type,
|
||||
_headers,
|
||||
_host_index,
|
||||
) -> Tuple:
|
||||
) -> RequestSerialized:
|
||||
|
||||
_host = None
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ from openapi_client.models.pet import Pet
|
||||
from openapi_client.models.string_enum_ref import StringEnumRef
|
||||
from openapi_client.models.test_query_style_form_explode_true_array_string_query_object_parameter import TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter
|
||||
|
||||
from openapi_client.api_client import ApiClient
|
||||
from openapi_client.api_client import ApiClient, RequestSerialized
|
||||
from openapi_client.api_response import ApiResponse
|
||||
from openapi_client.rest import RESTResponseType
|
||||
|
||||
@@ -259,7 +259,7 @@ class QueryApi:
|
||||
_content_type,
|
||||
_headers,
|
||||
_host_index,
|
||||
) -> Tuple:
|
||||
) -> RequestSerialized:
|
||||
|
||||
_host = None
|
||||
|
||||
@@ -548,7 +548,7 @@ class QueryApi:
|
||||
_content_type,
|
||||
_headers,
|
||||
_host_index,
|
||||
) -> Tuple:
|
||||
) -> RequestSerialized:
|
||||
|
||||
_host = None
|
||||
|
||||
@@ -859,7 +859,7 @@ class QueryApi:
|
||||
_content_type,
|
||||
_headers,
|
||||
_host_index,
|
||||
) -> Tuple:
|
||||
) -> RequestSerialized:
|
||||
|
||||
_host = None
|
||||
|
||||
@@ -1126,7 +1126,7 @@ class QueryApi:
|
||||
_content_type,
|
||||
_headers,
|
||||
_host_index,
|
||||
) -> Tuple:
|
||||
) -> RequestSerialized:
|
||||
|
||||
_host = None
|
||||
|
||||
@@ -1385,7 +1385,7 @@ class QueryApi:
|
||||
_content_type,
|
||||
_headers,
|
||||
_host_index,
|
||||
) -> Tuple:
|
||||
) -> RequestSerialized:
|
||||
|
||||
_host = None
|
||||
|
||||
@@ -1644,7 +1644,7 @@ class QueryApi:
|
||||
_content_type,
|
||||
_headers,
|
||||
_host_index,
|
||||
) -> Tuple:
|
||||
) -> RequestSerialized:
|
||||
|
||||
_host = None
|
||||
|
||||
@@ -1903,7 +1903,7 @@ class QueryApi:
|
||||
_content_type,
|
||||
_headers,
|
||||
_host_index,
|
||||
) -> Tuple:
|
||||
) -> RequestSerialized:
|
||||
|
||||
_host = None
|
||||
|
||||
@@ -2162,7 +2162,7 @@ class QueryApi:
|
||||
_content_type,
|
||||
_headers,
|
||||
_host_index,
|
||||
) -> Tuple:
|
||||
) -> RequestSerialized:
|
||||
|
||||
_host = None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user