Skip to content

Commit e992516

Browse files
committed
[fix] Added assert statement instead of "type ignore" pragmas.
Signed-off-by: Michael Seifert <[email protected]>
1 parent 27608a4 commit e992516

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pytest_asyncio/plugin.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -238,14 +238,14 @@ def _preprocess_async_fixtures(
238238
f"instead."
239239
)
240240
)
241-
# TODO: Fix type errors below.
241+
assert event_loop_fixture_id
242242
_inject_fixture_argnames(
243243
fixturedef,
244-
event_loop_fixture_id, # type: ignore[arg-type]
244+
event_loop_fixture_id,
245245
)
246246
_synchronize_async_fixture(
247247
fixturedef,
248-
event_loop_fixture_id, # type: ignore[arg-type]
248+
event_loop_fixture_id,
249249
)
250250
assert _is_asyncio_fixture_function(fixturedef.func)
251251
processed_fixturedefs.add(fixturedef)

0 commit comments

Comments
 (0)