Skip to content

Commit

Permalink
parse_eq: what if already parsed?
Browse files Browse the repository at this point in the history
  • Loading branch information
kw committed Mar 24, 2024
1 parent 03747fb commit 0ea7049
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/camp/engine/rules/base_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,8 @@ def __repr__(self) -> str:


def parse_req(req: Any) -> Requirement:
if isinstance(req, BoolExpr):
return req
match req:
case [*requirements]:
return AllOf(all=[parse_req(r) for r in requirements])
Expand Down

0 comments on commit 0ea7049

Please sign in to comment.