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

python3.7 import aioredis faild #1486

Open
1 task done
zjs352 opened this issue Feb 2, 2023 · 0 comments
Open
1 task done

python3.7 import aioredis faild #1486

zjs352 opened this issue Feb 2, 2023 · 0 comments
Labels

Comments

@zjs352
Copy link

zjs352 commented Feb 2, 2023

Describe the bug

windwos环境下 python 3.7.0版本 import aioredis报错

To Reproduce

Traceback (most recent call last):
File "E:/untitled5/test_aioredis.py", line 1, in
import aioredis
File "E:\untitled5\venv\lib\site-packages\aioredis_init_.py", line 1, in
from aioredis.client import Redis, StrictRedis
File "E:\untitled5\venv\lib\site-packages\aioredis\client.py", line 51, in
from aioredis.lock import Lock
File "E:\untitled5\venv\lib\site-packages\aioredis\lock.py", line 13, in
class Lock:
File "E:\untitled5\venv\lib\site-packages\aioredis\lock.py", line 241, in Lock
def release(self) -> Awaitable[NoReturn]:
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\typing.py", line 251, in inner
return func(*args, **kwds)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\typing.py", line 626, in getitem
params = tuple(_type_check(p, msg) for p in params)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\typing.py", line 626, in
params = tuple(_type_check(p, msg) for p in params)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\typing.py", line 135, in _type_check
raise TypeError(f"Plain {arg} is not valid as type argument")
TypeError: Plain typing.NoReturn is not valid as type argument

Expected behavior

期望修复该问题

Logs/tracebacks

Traceback (most recent call last):
  File "E:/untitled5/test_aioredis.py", line 1, in <module>
    import aioredis
  File "E:\untitled5\venv\lib\site-packages\aioredis\__init__.py", line 1, in <module>
    from aioredis.client import Redis, StrictRedis
  File "E:\untitled5\venv\lib\site-packages\aioredis\client.py", line 51, in <module>
    from aioredis.lock import Lock
  File "E:\untitled5\venv\lib\site-packages\aioredis\lock.py", line 13, in <module>
    class Lock:
  File "E:\untitled5\venv\lib\site-packages\aioredis\lock.py", line 241, in Lock
    def release(self) -> Awaitable[NoReturn]:
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\typing.py", line 251, in inner
    return func(*args, **kwds)
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\typing.py", line 626, in __getitem__
    params = tuple(_type_check(p, msg) for p in params)
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\typing.py", line 626, in <genexpr>
    params = tuple(_type_check(p, msg) for p in params)
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\typing.py", line 135, in _type_check
    raise TypeError(f"Plain {arg} is not valid as type argument")
TypeError: Plain typing.NoReturn is not valid as type argument

Python Version

$ python --version
3.7.0

aioredis Version

$ python -m pip show aioredis
2.0.1

Additional context

No response

Code of Conduct

  • I agree to follow the aio-libs Code of Conduct
@zjs352 zjs352 added the bug label Feb 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant