AmbiguousDef

class AmbiguousDef[source]

Determine whether expanded definitions are consistent.

Methods

AmbiguousDef.__init__()

AmbiguousDef.add_def(def_tag, def_expand_group)

AmbiguousDef.get_group()

AmbiguousDef.validate()

Validate the given ambiguous definition.

Attributes

AmbiguousDef.__init__()[source]
AmbiguousDef.add_def(def_tag, def_expand_group)[source]
AmbiguousDef.get_group()[source]
AmbiguousDef.validate()[source]

Validate the given ambiguous definition.

Returns:

True if this is a valid definition with exactly 1 placeholder.

Return type:

bool

Raises:

ValueError – Raised if this is an invalid(not ambiguous) definition.