dicfg.addons.typing.TypeValidator#

class TypeValidator[source]#

Bases: ValidatorAddon, ABC

Base class for type validators.

Subclasses must define:
  • EXPECTED_TYPE: The type (or tuple of types) that is expected.

  • NAME: The identifier for the validator.

__init__()#

Methods

__init__()

get_addon(name)

validate(value)

Validate the value

Attributes

EXPECTED_TYPE

NAME

classmethod validate(value)[source]#

Validate the value