To print a clause as in Conjunctive Normal Form. >>> str(Clause(["A1", "A2'", "A3"])) "{A1 , A2' , A3}"
(self)
| 39 | self.literals: dict[str, bool | None] = dict.fromkeys(literals) |
| 40 | |
| 41 | def __str__(self) -> str: |
| 42 | """ |
| 43 | To print a clause as in Conjunctive Normal Form. |
| 44 | |
| 45 | >>> str(Clause(["A1", "A2'", "A3"])) |
| 46 | "{A1 , A2' , A3}" |
| 47 | """ |
| 48 | return "{" + " , ".join(self.literals) + "}" |
| 49 | |
| 50 | def __len__(self) -> int: |
| 51 | """ |
nothing calls this directly
no outgoing calls
no test coverage detected