This repository was archived by the owner on Dec 25, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +16
-16
lines changed
modules/openapi-json-schema-generator/src/main/resources/python
3_0_3_unit_test/python/unit_test_api
features/nonCompliantUseDiscriminatorIfCompositionFails/python/this_package
petstore/python/petstore_api Expand file tree Collapse file tree 4 files changed +16
-16
lines changed Original file line number Diff line number Diff line change @@ -796,14 +796,14 @@ class MediaType:
796796@dataclass
797797class ApiResponse:
798798 response: urllib3.HTTPResponse
799- body: typing.Union[Unset, Schema]
800- headers: typing.Union[Unset, typing.List[HeaderParameter]]
799+ body: typing.Union[Unset, Schema] = unset
800+ headers: typing.Union[Unset, typing.Dict[str, Schema]] = unset
801801
802802 def __init__(
803803 self,
804804 response: urllib3.HTTPResponse,
805- body: typing.Union[Unset, typing.Type[ Schema]] ,
806- headers: typing.Union[Unset, typing.List[HeaderParameter]]
805+ body: typing.Union[Unset, Schema] = unset ,
806+ headers: typing.Union[Unset, typing.Dict[str, Schema]] = unset
807807 ):
808808 """
809809 pycharm needs this to prevent 'Unexpected argument' warnings
Original file line number Diff line number Diff line change @@ -800,14 +800,14 @@ class MediaType:
800800@dataclass
801801class ApiResponse :
802802 response : urllib3 .HTTPResponse
803- body : typing .Union [Unset , Schema ]
804- headers : typing .Union [Unset , typing .List [ HeaderParameter ]]
803+ body : typing .Union [Unset , Schema ] = unset
804+ headers : typing .Union [Unset , typing .Dict [ str , Schema ]] = unset
805805
806806 def __init__ (
807807 self ,
808808 response : urllib3 .HTTPResponse ,
809- body : typing .Union [Unset , typing . Type [ Schema ]] ,
810- headers : typing .Union [Unset , typing .List [ HeaderParameter ]]
809+ body : typing .Union [Unset , Schema ] = unset ,
810+ headers : typing .Union [Unset , typing .Dict [ str , Schema ]] = unset
811811 ):
812812 """
813813 pycharm needs this to prevent 'Unexpected argument' warnings
Original file line number Diff line number Diff line change @@ -800,14 +800,14 @@ class MediaType:
800800@dataclass
801801class ApiResponse :
802802 response : urllib3 .HTTPResponse
803- body : typing .Union [Unset , Schema ]
804- headers : typing .Union [Unset , typing .List [ HeaderParameter ]]
803+ body : typing .Union [Unset , Schema ] = unset
804+ headers : typing .Union [Unset , typing .Dict [ str , Schema ]] = unset
805805
806806 def __init__ (
807807 self ,
808808 response : urllib3 .HTTPResponse ,
809- body : typing .Union [Unset , typing . Type [ Schema ]] ,
810- headers : typing .Union [Unset , typing .List [ HeaderParameter ]]
809+ body : typing .Union [Unset , Schema ] = unset ,
810+ headers : typing .Union [Unset , typing .Dict [ str , Schema ]] = unset
811811 ):
812812 """
813813 pycharm needs this to prevent 'Unexpected argument' warnings
Original file line number Diff line number Diff line change @@ -800,14 +800,14 @@ class MediaType:
800800@dataclass
801801class ApiResponse :
802802 response : urllib3 .HTTPResponse
803- body : typing .Union [Unset , Schema ]
804- headers : typing .Union [Unset , typing .List [ HeaderParameter ]]
803+ body : typing .Union [Unset , Schema ] = unset
804+ headers : typing .Union [Unset , typing .Dict [ str , Schema ]] = unset
805805
806806 def __init__ (
807807 self ,
808808 response : urllib3 .HTTPResponse ,
809- body : typing .Union [Unset , typing . Type [ Schema ]] ,
810- headers : typing .Union [Unset , typing .List [ HeaderParameter ]]
809+ body : typing .Union [Unset , Schema ] = unset ,
810+ headers : typing .Union [Unset , typing .Dict [ str , Schema ]] = unset
811811 ):
812812 """
813813 pycharm needs this to prevent 'Unexpected argument' warnings
You can’t perform that action at this time.
0 commit comments