-
Notifications
You must be signed in to change notification settings - Fork 5
Description
Hi,
I am trying implement the example here and I am getting the following error:
Upon inspecting the requirements.txt file, I can see that the requirement for python version is < 3.7.
When I checked the code for the API implementation, I found that the pipe operator '|' is being used to provide type hint for the value returned by the class method _get_http_response for both classes RealtimeAPI and AsyncAPI in api.py. This way of type hinting is only supported in python 3.10 or newer version which might be causing this error.
Recommended Solution: Either changing type hinting for the above mentioned methods to use Union type or updating the requirements file.
Just creating this ticket to bring this issue to light. I would be happy to create a pull-request with the fix.
P.S: It's my first time creating a GitHub issue so apologies for any mistakes. Thanks!
