forked from loafle/openapi-generator-original
[python] Fixes Response TypeError (#14299)
* Fix and sample regen * Response with only header added, sample regnerated
This commit is contained in:
@@ -800,14 +800,14 @@ class MediaType:
|
||||
@dataclass
|
||||
class ApiResponse:
|
||||
response: urllib3.HTTPResponse
|
||||
body: typing.Union[Unset, Schema]
|
||||
headers: typing.Union[Unset, typing.List[HeaderParameter]]
|
||||
body: typing.Union[Unset, Schema] = unset
|
||||
headers: typing.Union[Unset, typing.Dict[str, Schema]] = unset
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
response: urllib3.HTTPResponse,
|
||||
body: typing.Union[Unset, typing.Type[Schema]],
|
||||
headers: typing.Union[Unset, typing.List[HeaderParameter]]
|
||||
body: typing.Union[Unset, Schema] = unset,
|
||||
headers: typing.Union[Unset, typing.Dict[str, Schema]] = unset
|
||||
):
|
||||
"""
|
||||
pycharm needs this to prevent 'Unexpected argument' warnings
|
||||
|
||||
Reference in New Issue
Block a user