From e73c1f861585475a64e2883265ae9a8ba68a66ec Mon Sep 17 00:00:00 2001 From: Pieter De Gendt Date: Mon, 4 Nov 2024 09:21:57 +0100 Subject: [PATCH] project: Fix non-pep585-annotation for set (UP006) Derived from pyupgrade, see https://docs.astral.sh/ruff/rules/non-pep585-annotation/ Signed-off-by: Pieter De Gendt --- src/west/manifest.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/west/manifest.py b/src/west/manifest.py index d12fa86..180ff79 100644 --- a/src/west/manifest.py +++ b/src/west/manifest.py @@ -18,7 +18,7 @@ import shlex import subprocess import sys from typing import Any, Callable, Iterable, NoReturn, \ - NamedTuple, Optional, Set, TYPE_CHECKING, Union + NamedTuple, Optional, TYPE_CHECKING, Union from packaging.version import parse as parse_version import pykwalify.core @@ -449,7 +449,7 @@ _RESERVED_GROUP_RE = re.compile(r'(^[+-]|[\s,:])') _INVALID_PROJECT_NAME_RE = re.compile(r'([/\\])') _RESERVED_PROJECT_NAME_RE = re.compile(r'[\s,]') -def _update_disabled_groups(disabled_groups: Set[str], +def _update_disabled_groups(disabled_groups: set[str], group_filter: GroupFilterType): # Update a set of disabled groups in place based on # 'group_filter'. @@ -1474,7 +1474,7 @@ class Manifest: # The final set of groups which are explicitly disabled in # this manifest data, after resolving imports. This is used # as an optimization in is_active(). - self._disabled_groups: Set[str] = set() + self._disabled_groups: set[str] = set() # The "raw" (unparsed) manifest.group-filter configuration # option in the local configuration file. See # _config_group_filter(); only initialized if self._top_level