This repository was archived by the owner on Dec 25, 2024. It is now read-only.
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
4 files changed +16
-16
lines changed Original file line number Diff line number Diff line change @@ -796,14 +796,14 @@ class MediaType:
796
796
@dataclass
797
797
class ApiResponse:
798
798
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
801
801
802
802
def __init__(
803
803
self,
804
804
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
807
807
):
808
808
"""
809
809
pycharm needs this to prevent 'Unexpected argument' warnings
Original file line number Diff line number Diff line change @@ -800,14 +800,14 @@ class MediaType:
800
800
@dataclass
801
801
class ApiResponse :
802
802
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
805
805
806
806
def __init__ (
807
807
self ,
808
808
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
811
811
):
812
812
"""
813
813
pycharm needs this to prevent 'Unexpected argument' warnings
Original file line number Diff line number Diff line change @@ -800,14 +800,14 @@ class MediaType:
800
800
@dataclass
801
801
class ApiResponse :
802
802
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
805
805
806
806
def __init__ (
807
807
self ,
808
808
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
811
811
):
812
812
"""
813
813
pycharm needs this to prevent 'Unexpected argument' warnings
Original file line number Diff line number Diff line change @@ -800,14 +800,14 @@ class MediaType:
800
800
@dataclass
801
801
class ApiResponse :
802
802
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
805
805
806
806
def __init__ (
807
807
self ,
808
808
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
811
811
):
812
812
"""
813
813
pycharm needs this to prevent 'Unexpected argument' warnings
You can’t perform that action at this time.
0 commit comments