Skip to content
This repository has been archived by the owner on May 10, 2023. It is now read-only.

Syntax error in mms-python-client 3.4.3 #346

Open
bergmanngabor opened this issue Nov 13, 2020 · 1 comment
Open

Syntax error in mms-python-client 3.4.3 #346

bergmanngabor opened this issue Nov 13, 2020 · 1 comment

Comments

@bergmanngabor
Copy link

Steps to reproduce

  1. Use Python 3.7 or 3.8 (although I think any version after 3.5 will lead to the same problem)
  2. Install mms-python-client 3.4.3 from https://pypi.org/project/mms-python-client/3.4.3/
  3. import mms-python-client

Expected behaviour

Import is successful

Observed behaviour

Syntax error, due to Python keyword async appearing as an identifier in the generated Python code.

  File "/srv/conda/envs/notebook/lib/python3.7/site-packages/mms_python_client/api/artifact_api.py", line 137
    async=params.get('async'),
        ^
SyntaxError: invalid syntax

Triage

Used to work correctly with mms-python-client 3.4.2.1

See also

OpenAPITools/openapi-generator#7119

@HuiJun
Copy link
Collaborator

HuiJun commented Nov 23, 2020

Thank you for the bug report. This seems to be related to async being a keyword now in python 3. We will fix this before the full 3.4.3 release.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants