df
Some checks failed
smoke-mm / Install & smoke test mm --help (push) Has been cancelled

This commit is contained in:
2025-12-29 17:05:03 -08:00
parent 226de9316a
commit c019c00aed
104 changed files with 19669 additions and 12954 deletions

View File

@@ -57,7 +57,7 @@ class Store(ABC):
Default behavior is to call add_url() per file.
"""
changed_any = False
for file_identifier, urls in (items or []):
for file_identifier, urls in items or []:
try:
ok = self.add_url(file_identifier, urls, **kwargs)
changed_any = changed_any or bool(ok)
@@ -72,7 +72,7 @@ class Store(ABC):
Default behavior is to call delete_url() per file.
"""
changed_any = False
for file_identifier, urls in (items or []):
for file_identifier, urls in items or []:
try:
ok = self.delete_url(file_identifier, urls, **kwargs)
changed_any = changed_any or bool(ok)
@@ -87,7 +87,7 @@ class Store(ABC):
Default behavior is to call set_note() per file.
"""
changed_any = False
for file_identifier, name, text in (items or []):
for file_identifier, name, text in items or []:
try:
ok = self.set_note(file_identifier, name, text, **kwargs)
changed_any = changed_any or bool(ok)
@@ -112,7 +112,9 @@ class Store(ABC):
"""Add or replace a named note for a file."""
raise NotImplementedError
def selector(self, selected_items: List[Any], *, ctx: Any, stage_is_last: bool = True, **_kwargs: Any) -> bool:
def selector(
self, selected_items: List[Any], *, ctx: Any, stage_is_last: bool = True, **_kwargs: Any
) -> bool:
"""Optional hook for handling `@N` selection semantics.
Return True if the selection was handled and default behavior should be skipped.