Skip to content

Commit

Permalink
[refactor] Address mypy complaint about unknown type.
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Seifert <[email protected]>
  • Loading branch information
seifertm committed Oct 23, 2023
1 parent 1da3339 commit 106fa54
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pytest_asyncio/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,8 @@ def _can_substitute(item: Function) -> bool:
def runtest(self) -> None:
if self.get_closest_marker("asyncio"):
self.obj = wrap_in_sync(
self.obj,
# https://github.com/pytest-dev/pytest-asyncio/issues/596
self.obj, # type: ignore[has-type]
)
super().runtest()

Expand All @@ -419,7 +420,8 @@ def _can_substitute(item: Function) -> bool:
def runtest(self) -> None:
if self.get_closest_marker("asyncio"):
self.obj = wrap_in_sync(
self.obj,
# https://github.com/pytest-dev/pytest-asyncio/issues/596
self.obj, # type: ignore[has-type]
)
super().runtest()

Expand Down

0 comments on commit 106fa54

Please sign in to comment.