Skip to content

invalid usage of super() when having multi-baseclass inheritance: … #802

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

sergiy-kozak
Copy link

…use direct basecls.init() to avoid nasty side effect of calling 'wrong' base class init(). Particularly in this case, openapi_core.validation.request.BaseRequestUnmarshaller got 'extra_format_unmarshallers' property reset to None after BaseRequestValidator.init() call. Added unit test would fail if super() calls are present instead.

Sergii Kozak and others added 2 commits March 2, 2024 16:00
…use direct basecls.__init__() to avoid nasty side effect of calling 'wrong' base class __init__(). Particularly in this case, openapi_core.validation.request.BaseRequestUnmarshaller got 'extra_format_unmarshallers' property reset to None after BaseRequestValidator.__init__() call
@p1c2u
Copy link
Collaborator

p1c2u commented Mar 5, 2024

@sergiy-kozak Thank you for the contribution

@p1c2u p1c2u changed the title - invalid usage of super() when having multi-baseclass inheritance: … invalid usage of super() when having multi-baseclass inheritance: … Mar 5, 2024
@p1c2u p1c2u merged commit 97c5245 into python-openapi:master Mar 5, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants