Skip to content

[REQ] Improve python-flask code syntax #16377

@anis-campos

Description

@anis-campos

Is your feature request related to a problem? Please describe.

The generated code still has traces of the python2.7 support, for example, when six is used.

Describe the solution you'd like

Fully adopt the EOL of python2.7 and start using modern python syntax. It could also mean to start using type hints, dataclasses, etc...

Describe alternatives you've considered

Additional context

We are starting to automate python syntax evolution tool pyupgrade in our projects, and while it helps the generated code look "less dated", it becomes a extra step in the code generation, slowing the process.

By maintaining the template syntax, we will have the same result but with a better process.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions