[BUG][PYTHON] python model simple constuction uses a missing local before its avaliable
Created by: RonnyPfannschmidt
Bug Report Checklist
this one is a reference before assignment
-
Have you provided a full/minimal spec to reproduce the issue? -
Have you validated the input using an OpenAPI validator (example)? -
Have you tested with the latest master to confirm the issue still exists? -
Have you searched for related issues/PRs? -
What's the actual output vs expected output? -
[Optional] Sponsorship to speed up the bug fix or feature request (example)
Description
openapi-generator version
5.0.1
OpenAPI declaration file content or url
not needed
Steps to reproduce
not needed
Related issues/PRs
Suggested fix
a basic fix is just to pull the extraction up
a good fix would be to actually use python features to declare the arguments
i have the basic fix in a checkout and will contribute a PR later today likely with the enhanced fix