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

first: Label
second: Label
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

spelled_apart(names: Iterable[Label])[source]

Two different names with one plain spelling: a picture keys a name by it.

Return type:

Iterator[Violation]