Skip to content

Commit bc53ef5

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent cc60a56 commit bc53ef5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pytest_asyncio/plugin.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
from collections.abc import (
1717
AsyncIterator,
1818
Awaitable,
19+
Callable,
1920
Generator,
2021
Iterable,
2122
Iterator,
@@ -24,11 +25,9 @@
2425
from types import AsyncGeneratorType, CoroutineType
2526
from typing import (
2627
Any,
27-
Callable,
2828
Literal,
2929
ParamSpec,
3030
TypeVar,
31-
Union,
3231
overload,
3332
)
3433

@@ -61,7 +60,7 @@
6160
from typing_extensions import TypeIs
6261

6362
_ScopeName = Literal["session", "package", "module", "class", "function"]
64-
_R = TypeVar("_R", bound=Union[Awaitable[Any], AsyncIterator[Any]])
63+
_R = TypeVar("_R", bound=Awaitable[Any] | AsyncIterator[Any])
6564
_P = ParamSpec("_P")
6665
FixtureFunction = Callable[_P, _R]
6766

0 commit comments

Comments
 (0)