Skip to content

Commit 49ddea1

Browse files
committed
refactor: Remove obsolete type cast.
1 parent 41a566a commit 49ddea1

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

pytest_asyncio/plugin.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
Literal,
2929
TypeVar,
3030
Union,
31-
cast,
3231
overload,
3332
)
3433

@@ -703,7 +702,6 @@ def pytest_runtest_setup(item: pytest.Item) -> None:
703702
marker = item.get_closest_marker("asyncio")
704703
if marker is None or not is_async_test(item):
705704
return
706-
item = cast(PytestAsyncioFunction, item)
707705
runner_fixture_id = f"_{item.loop_scope}_scoped_runner"
708706
fixturenames = item.fixturenames # type: ignore[attr-defined]
709707
if runner_fixture_id not in fixturenames:

0 commit comments

Comments
 (0)