cottax.consumers.visualization.refusals module¶
Why a picture is not drawn: two names, or two categories, it would draw as one.
- class NamedAlike(name: str, first: object, second: object)[source]¶
Bases:
Violation- name: str¶
- first: object¶
- second: object¶
- template: AbstractClassVar[str] = 'two categories are named {name!r}: {first!r} and {second!r}'¶
e.g. ‘output {place!r} is owned by both {other!r} and {node!r}’
- Type:
Wording
- class SpelledAlike(first: Label, second: Label, spelled: str)[source]¶
Bases:
Violation- spelled: str¶
- template: AbstractClassVar[str] = '{first!r} and {second!r} are both spelled {spelled!r}: a picture keys a name by its plain spelling, so it would draw one as the other'¶
e.g. ‘output {place!r} is owned by both {other!r} and {node!r}’
- Type:
Wording