Failure on python3.9 as requests-openapi uses python syntax that is not available in python3.9
Closed this issue · 3 comments
maciej-lech commented
Hi
The error is:
...
.../lib/python3.9/site-packages/requests_openapi/core.py", line 144, in Client
_server: Server | None
TypeError: unsupported operand type(s) for |: 'ModelMetaclass' and 'NoneType'`.
Please pin 0.9.x for python3.9, by adding a proper python_requires
in setup.py
or remove that syntax.
Thank you in advance!
Best regards,
Maciej
wy-z commented
Hi @maciej-lech ,
Glad to get your feedback, I did miss that point.
I've fixed this (#12) and released 1.0.5 (https://github.com/wy-z/requests-openapi/releases/tag/1.0.5).
And it tests fine in a 3.9 environment, so you can try ~
wy-z commented
If there are any problems, you can reopen the issue.
maciej-lech commented
@wy-z thank you for a very fast response. I will test the new version.