Skip to content

Commit

Permalink
Hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
biagiodistefano authored Dec 13, 2024
1 parent a1ca7be commit b5a9325
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rule_engine/rule.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def __repr__(self) -> str: # pragma: no cover

class Rule:
def __init__(self, *args: "Rule", **conditions: t.Any) -> None:
self._id = self._validate_id(conditions.get("__id", str(uuid4())))
self._id = self._validate_id(conditions.pop("__id", str(uuid4())))
self._conditions: list[tuple[_OP, t.Union[dict[str, t.Any], "Rule"]]] = []
for arg in args:
if isinstance(arg, Rule):
Expand Down

0 comments on commit b5a9325

Please sign in to comment.