Skip to content

Commit 106fa54

Browse files
committed
[refactor] Address mypy complaint about unknown type.
Signed-off-by: Michael Seifert <[email protected]>
1 parent 1da3339 commit 106fa54

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pytest_asyncio/plugin.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,8 @@ def _can_substitute(item: Function) -> bool:
398398
def runtest(self) -> None:
399399
if self.get_closest_marker("asyncio"):
400400
self.obj = wrap_in_sync(
401-
self.obj,
401+
# https://github.com/pytest-dev/pytest-asyncio/issues/596
402+
self.obj, # type: ignore[has-type]
402403
)
403404
super().runtest()
404405

@@ -419,7 +420,8 @@ def _can_substitute(item: Function) -> bool:
419420
def runtest(self) -> None:
420421
if self.get_closest_marker("asyncio"):
421422
self.obj = wrap_in_sync(
422-
self.obj,
423+
# https://github.com/pytest-dev/pytest-asyncio/issues/596
424+
self.obj, # type: ignore[has-type]
423425
)
424426
super().runtest()
425427

0 commit comments

Comments
 (0)