check_new_syntax.py: check nested annotations (#6167)

This commit is contained in:
Akuli
2021-10-13 21:28:38 +00:00
committed by GitHub
parent f30b5ae363
commit 75ca712f3c
6 changed files with 28 additions and 24 deletions

View File

@@ -38,7 +38,7 @@ class MapResult(ApplyResult[List[_T]]):
pool: Pool,
chunksize: int,
length: int,
callback: Callable[[List[_T]], None] | None,
callback: Callable[[list[_T]], None] | None,
error_callback: Callable[[BaseException], None] | None,
) -> None: ...
else:
@@ -47,7 +47,7 @@ class MapResult(ApplyResult[List[_T]]):
cache: dict[int, ApplyResult[Any]],
chunksize: int,
length: int,
callback: Callable[[List[_T]], None] | None,
callback: Callable[[list[_T]], None] | None,
error_callback: Callable[[BaseException], None] | None,
) -> None: ...