stdlib: remove unused type: ignore comments (#11061)

This commit is contained in:
Alex Waygood
2023-11-23 13:00:07 +00:00
committed by GitHub
parent c2c8d7cf5d
commit 10febc4fe0
19 changed files with 76 additions and 72 deletions

View File

@@ -593,9 +593,8 @@ _R = TypeVar("_R")
_P = ParamSpec("_P")
# it's not really an Awaitable, but can be used in an await expression. Real type: Generator & Awaitable
# The type: ignore is due to overlapping overloads, not the use of ParamSpec
@overload
def coroutine(func: Callable[_P, Generator[Any, Any, _R]]) -> Callable[_P, Awaitable[_R]]: ... # type: ignore[misc]
def coroutine(func: Callable[_P, Generator[Any, Any, _R]]) -> Callable[_P, Awaitable[_R]]: ... # type: ignore[overload-overlap]
@overload
def coroutine(func: _Fn) -> _Fn: ...