Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
teh-cmc committed Dec 20, 2024
1 parent d9db7b3 commit a5c4b91
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/python/release_checklist/check_all_components_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ def __init__(
alternatives: Iterable[Any] | None = None,
disabled: bool = False,
):
assert (single is not None) ^ (batch is not None) ^ (alternatives is not None) ^ disabled, (
"Exactly one of single, batch, or alternatives must be provided"
)
assert (
(single is not None) ^ (batch is not None) ^ (alternatives is not None) ^ disabled
), "Exactly one of single, batch, or alternatives must be provided"

if batch is not None:
batch = list(batch)
Expand Down Expand Up @@ -255,9 +255,9 @@ def log_readme() -> None:
def log_some_views() -> None:
# check that we didn't forget a component
missing_components = set(c for c in dir(rr.components) if c.endswith("Batch")) - set(ALL_COMPONENTS.keys())
assert len(missing_components) == 0, (
f"Some components are missing from the `ALL_COMPONENTS` dictionary: {missing_components}"
)
assert (
len(missing_components) == 0
), f"Some components are missing from the `ALL_COMPONENTS` dictionary: {missing_components}"

# log all components as len=1 batches
rr.log(
Expand Down

0 comments on commit a5c4b91

Please sign in to comment.