Skip to content

Commit

Permalink
Fix pyre type errors that were missed in CI
Browse files Browse the repository at this point in the history
Summary: A bunch of pyre type checking tests were missed in CI, fixing these now.

Reviewed By: keshavdv

Differential Revision: D66966168

fbshipit-source-id: 05ddcc76ee6e62d5ed9b76ea2134bdd446910902
  • Loading branch information
Thomas Polasek authored and facebook-github-bot committed Dec 9, 2024
1 parent 7ed53c2 commit 059de0f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions testslide/core/mock_callable.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,10 @@ def _is_coroutine(obj: Any) -> bool:
11,
]:
return inspect.iscoroutine(obj) or isinstance(
obj, asyncio.coroutines.CoroWrapper
) # type: ignore
obj,
# pyre-ignore
asyncio.coroutines.CoroWrapper,
)
else:
return inspect.iscoroutine(obj)

Expand Down

0 comments on commit 059de0f

Please # to comment.