You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 21, 2023. It is now read-only.
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>classLock:
File "E:\untitled5\venv\lib\site-packages\aioredis\lock.py", line 241, in Lockdefrelease(self) -> Awaitable[NoReturn]:
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\typing.py", line 251, in innerreturn 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_checkraiseTypeError(f"Plain {arg} is not valid as type argument")
TypeError: Plain typing.NoReturn is not valid as type argument
Python Version
$ python --version3.7.0
aioredis Version
$ python -m pip show aioredis2.0.1
Additional context
No response
Code of Conduct
I agree to follow the aio-libs Code of Conduct
The text was updated successfully, but these errors were encountered:
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
Python Version
aioredis Version
Additional context
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: