We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d8ae80 commit a1206afCopy full SHA for a1206af
1 file changed
returns/primitives/reawaitable.py
@@ -4,11 +4,12 @@
4
5
# Try to use anyio.Lock, fall back to asyncio.Lock
6
try:
7
- import anyio
8
- Lock = anyio.Lock
+ import anyio # noqa: WPS433
9
except ImportError:
10
- import asyncio
+ import asyncio # noqa: WPS433
11
Lock = asyncio.Lock
+else:
12
+ Lock = anyio.Lock
13
14
_ValueType = TypeVar('_ValueType')
15
_AwaitableT = TypeVar('_AwaitableT', bound=Awaitable)
0 commit comments