From 5fc866f9fd54bc29f8b8f74f615c7d8800ba3c40 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 15 May 2024 21:11:21 -0400 Subject: [PATCH] Update dependency pyright to v1.1.363 (#11919) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Alex Waygood --- requirements-tests.txt | 2 +- stubs/psutil/psutil/_pswindows.pyi | 14 ++++++++------ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/requirements-tests.txt b/requirements-tests.txt index 192ab1b45..2f7b1bc17 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.4.1 # must match .pre-commit-config.yaml mypy==1.10.0 pre-commit-hooks==4.5.0 # must match .pre-commit-config.yaml -pyright==1.1.362 +pyright==1.1.363 pytype==2024.4.11; platform_system != "Windows" and python_version < "3.12" ruff==0.3.7 # must match .pre-commit-config.yaml diff --git a/stubs/psutil/psutil/_pswindows.pyi b/stubs/psutil/psutil/_pswindows.pyi index 283286b1a..eb3bd612c 100644 --- a/stubs/psutil/psutil/_pswindows.pyi +++ b/stubs/psutil/psutil/_pswindows.pyi @@ -3,6 +3,7 @@ from _typeshed import Incomplete from collections.abc import Iterable from typing import Any, NamedTuple +from psutil import _psutil_windows from psutil._common import ( ENCODING as ENCODING, ENCODING_ERRS as ENCODING_ERRS, @@ -35,13 +36,14 @@ AF_LINK: int AddressFamily: Any TCP_STATUSES: Any +# These noqas workaround https://github.com/astral-sh/ruff/issues/10874 class Priority(enum.IntEnum): - ABOVE_NORMAL_PRIORITY_CLASS = ABOVE_NORMAL_PRIORITY_CLASS - BELOW_NORMAL_PRIORITY_CLASS = BELOW_NORMAL_PRIORITY_CLASS - HIGH_PRIORITY_CLASS = HIGH_PRIORITY_CLASS - IDLE_PRIORITY_CLASS = IDLE_PRIORITY_CLASS - NORMAL_PRIORITY_CLASS = NORMAL_PRIORITY_CLASS - REALTIME_PRIORITY_CLASS = REALTIME_PRIORITY_CLASS + ABOVE_NORMAL_PRIORITY_CLASS = _psutil_windows.ABOVE_NORMAL_PRIORITY_CLASS # noqa: F811 + BELOW_NORMAL_PRIORITY_CLASS = _psutil_windows.BELOW_NORMAL_PRIORITY_CLASS # noqa: F811 + HIGH_PRIORITY_CLASS = _psutil_windows.HIGH_PRIORITY_CLASS # noqa: F811 + IDLE_PRIORITY_CLASS = _psutil_windows.IDLE_PRIORITY_CLASS # noqa: F811 + NORMAL_PRIORITY_CLASS = _psutil_windows.NORMAL_PRIORITY_CLASS # noqa: F811 + REALTIME_PRIORITY_CLASS = _psutil_windows.REALTIME_PRIORITY_CLASS # noqa: F811 IOPRIO_VERYLOW: int IOPRIO_LOW: int