Skip to content

Commit ef55f4e

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
1 parent fe8bead commit ef55f4e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

returns/primitives/reawaitable.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from collections.abc import Awaitable, Callable, Generator
2+
from contextlib import AbstractAsyncContextManager
23
from functools import wraps
34
from typing import NewType, ParamSpec, TypeVar, cast, final
4-
from contextlib import AbstractAsyncContextManager
55

66
# Try to use anyio.Lock, fall back to asyncio.Lock
77
# Note: anyio is required for proper trio support
@@ -10,9 +10,9 @@
1010
except ImportError: # pragma: no cover
1111
import asyncio # noqa: WPS433
1212

13-
Lock:AbstractAsyncContextManager = asyncio.Lock
13+
Lock: AbstractAsyncContextManager = asyncio.Lock
1414
else:
15-
Lock:AbstractAsyncContextManager = anyio.Lock
15+
Lock: AbstractAsyncContextManager = anyio.Lock
1616

1717
_ValueType = TypeVar('_ValueType')
1818
_AwaitableT = TypeVar('_AwaitableT', bound=Awaitable)
@@ -57,7 +57,7 @@ class ReAwaitable:
5757
5858
We try to make this type transparent.
5959
It should not actually be visible to any of its users.
60-
60+
6161
Note:
6262
For proper trio support, the anyio library is required.
6363
If anyio is not available, we fall back to asyncio.Lock.
@@ -144,7 +144,7 @@ def reawaitable(
144144
... return await instance + await instance + await instance
145145
146146
>>> assert anyio.run(main) == 3
147-
147+
148148
Note:
149149
For proper trio support, the anyio library is required.
150150
If anyio is not available, we fall back to asyncio.Lock.

0 commit comments

Comments
 (0)