From 059de0f3edc889551a48c29bb76c59173bfaeb9f Mon Sep 17 00:00:00 2001 From: Thomas Polasek Date: Mon, 9 Dec 2024 11:40:34 -0800 Subject: [PATCH] Fix pyre type errors that were missed in CI 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 --- testslide/core/mock_callable.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/testslide/core/mock_callable.py b/testslide/core/mock_callable.py index 950ee81..868c2b4 100644 --- a/testslide/core/mock_callable.py +++ b/testslide/core/mock_callable.py @@ -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)