TheJumpCloud / jcapi-python

21 stars 20 forks source link

async is a reserved keyword - import fails #22

Closed mfergus1 closed 5 years ago

mfergus1 commented 5 years ago

Hi there - I am trying to use jcapiv2 (with python3.7) and have

from jcapiv2.rest import ApiException

and get:

File "/Users/miaferguson/Workspace/auditing/lib/python3.7/site-packages/jcapiv2/api/active_directory_api.py", line 149
    async=params.get('async'),
        ^
SyntaxError: invalid syntax
thinkterry commented 5 years ago

Thanks for letting us know, @mfergus1! We've looked into this issue and believe it to be an incompatibility between the version of Swagger Codegen we were using, 2.3.1, and Python 3.7, which made async a reserved keyword. We've just released 3.0.0, which upgrades Swagger Codegen to 2.4.2 and should add support for Python 3.7. Let us know if this resolves your issue or if there are additional steps we need to take.