pkgcore.config.hint module

Config introspection support.

class pkgcore.config.hint.ConfigHint(types: dict[str, str] | None = None, positional: Sequence[str] | None = None, required: Sequence[str] | None = None, doc: str | None = None, typename: str | None = None, allow_unknowns: bool = False, authorative: bool = False, requires_config: bool = False, raw_class: bool = False)[source]

Bases: object

Hint for introspection supplying overrides.

allow_unknowns: bool
authorative: bool
clone(**kwds: Any) ConfigHint[source]

return a copy of this ConfigHint with the given kwds overrides

doc
positional: tuple[str, ...]
raw_class: bool
required: tuple[str, ...]
requires_config: bool
typename: str | None
types: dict[str, str]
pkgcore.config.hint.configurable(**kwargs)[source]

Decorator version of ConfigHint.