From 519166ba23fa35be3fa2ff26b7b3d02bd7b07956 Mon Sep 17 00:00:00 2001 From: sobolevn Date: Fri, 9 Aug 2024 20:19:19 +0300 Subject: [PATCH] Update pyright to 1.1.375 (#12503) --- requirements-tests.txt | 2 +- stdlib/_ctypes.pyi | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/requirements-tests.txt b/requirements-tests.txt index 3a16df66e..e1fe55e2a 100644 --- a/requirements-tests.txt +++ b/requirements-tests.txt @@ -7,7 +7,7 @@ flake8-noqa==1.4.0 # must match .pre-commit-config.yaml flake8-pyi==24.6.0 # must match .pre-commit-config.yaml mypy==1.11.1 pre-commit-hooks==4.6.0 # must match .pre-commit-config.yaml -pyright==1.1.374 +pyright==1.1.375 pytype==2024.4.11; platform_system != "Windows" and python_version < "3.12" ruff==0.5.4 # must match .pre-commit-config.yaml diff --git a/stdlib/_ctypes.pyi b/stdlib/_ctypes.pyi index c1fb86193..5313195a0 100644 --- a/stdlib/_ctypes.pyi +++ b/stdlib/_ctypes.pyi @@ -51,8 +51,8 @@ class _CDataMeta(type): # By default mypy complains about the following two methods, because strictly speaking cls # might not be a Type[_CT]. However this can never actually happen, because the only class that # uses _CDataMeta as its metaclass is _CData. So it's safe to ignore the errors here. - def __mul__(cls: type[_CT], other: int) -> type[Array[_CT]]: ... # type: ignore[misc] - def __rmul__(cls: type[_CT], other: int) -> type[Array[_CT]]: ... # type: ignore[misc] + def __mul__(cls: type[_CT], other: int) -> type[Array[_CT]]: ... # type: ignore[misc] # pyright: ignore[reportGeneralTypeIssues] + def __rmul__(cls: type[_CT], other: int) -> type[Array[_CT]]: ... # type: ignore[misc] # pyright: ignore[reportGeneralTypeIssues] class _CData(metaclass=_CDataMeta): _b_base_: int