Fix a used-dummy-variable ruff warning (#3203)

This commit is contained in:
correctmost 2025-02-25 15:35:25 -05:00 committed by GitHub
parent 1ddc74af21
commit d6ea7b011f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -197,8 +197,8 @@ class MenuItemGroup:
@cached_property
def items(self) -> list[MenuItem]:
_filter = self._filter_pattern.lower()
items = filter(lambda item: item.is_empty() or _filter in item.text.lower(), self.menu_items)
pattern = self._filter_pattern.lower()
items = filter(lambda item: item.is_empty() or pattern in item.text.lower(), self.menu_items)
return list(items)
@property