| 27 | |
| 28 | |
| 29 | class Literal(Atom): |
| 30 | def __init__(self, value: str) -> None: |
| 31 | self.value = value |
| 32 | |
| 33 | def __repr__(self) -> str: |
| 34 | return f"Literal(value={self.value})" |
| 35 | |
| 36 | def __eq__(self, other: object) -> bool: |
| 37 | if not isinstance(other, self.__class__): |
| 38 | return NotImplemented |
| 39 | return self.value == other.value |
| 40 | |
| 41 | def __hash__(self) -> int: |
| 42 | return hash((self.__class__, self.value)) |
| 43 | |
| 44 | def resolve(self, env: Mapping[str, Optional[str]]) -> str: |
| 45 | return self.value |
| 46 | |
| 47 | |
| 48 | class Variable(Atom): |
no outgoing calls
no test coverage detected
searching dependent graphs…