Skip to content

Commit d21cae5

Browse files
committed
formatting
1 parent a881623 commit d21cae5

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

_misc/_type_assertions.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,15 @@ async def t2(a: int, b: str, *, x: bytes) -> str:
3838
return ""
3939

4040

41-
_t2_type: Coroutine[Any, Any, str] = assert_type(t2(1, "a", x=b""), Coroutine[Any, Any, str])
41+
_t2_type: Coroutine[Any, Any, str] = assert_type(
42+
t2(1, "a", x=b""), Coroutine[Any, Any, str]
43+
)
4244

4345

4446
def gen() -> Generator[int]:
4547
yield from range(10)
4648

4749

48-
_gen_assert_type: AsyncGenerator[int] = assert_type(sync_to_async_gen_noctx(gen), AsyncGenerator[int])
50+
_gen_assert_type: AsyncGenerator[int] = assert_type(
51+
sync_to_async_gen_noctx(gen), AsyncGenerator[int]
52+
)

src/async_utils/corofunc_cache.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,10 @@
4242
TYPE_CHECKING = False
4343
if TYPE_CHECKING:
4444
from typing import Protocol
45+
4546
class Deco(Protocol):
46-
def __call__[**P, R](self, c: CoroLike[P, R], /) -> CoroFunc[P, R]: ...
47+
def __call__[**P, R](self, c: CoroLike[P, R], /) -> CoroFunc[P, R]: ...
48+
4749
else:
4850
# This branch is here for something reasonable to exist at runtime
4951
# Not importing typing at runtime

src/async_utils/task_cache.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,10 @@
4444
TYPE_CHECKING = False
4545
if TYPE_CHECKING:
4646
from typing import Protocol
47+
4748
class Deco(Protocol):
48-
def __call__[**P, R](self, c: TaskCoroFunc[P, R], /) -> TaskFunc[P, R]: ...
49+
def __call__[**P, R](self, c: TaskCoroFunc[P, R], /) -> TaskFunc[P, R]: ...
50+
4951
else:
5052
# This branch is here for something reasonable to exist at runtime
5153
# Not importing typing at runtime

0 commit comments

Comments
 (0)