We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 555b8bd commit da2514cCopy full SHA for da2514c
cycler/__init__.py
@@ -81,8 +81,8 @@ def _process_keys(
81
r_peek: dict[K, V] = next(iter(right)) if right is not None else {}
82
l_key: set[K] = set(l_peek.keys())
83
r_key: set[K] = set(r_peek.keys())
84
- if l_key & r_key:
85
- raise ValueError(f"Cannot compose overlapping cycles, duplicate key(s): {l_key & r_key}")
+ if common_keys := l_key & r_key:
+ raise ValueError(f"Cannot compose overlapping cycles, duplicate key(s): {common_keys}")
86
87
return l_key | r_key
88
0 commit comments