ReferenceRecord

class ReferenceRecord(*snaks: Snak)[source]

Bases: SnakSet

Reference record (set of snaks).

Parameters:

snaks – Snaks.

classmethod check(arg: Any, function: Callable[[...], Any] | str | None = None, name: str | None = None, position: int | None = None) Self[source]

Coerces arg into an instance of this class.

If arg cannot be coerced, raises an error.

Parameters:
  • arg – Value.

  • function – Function or function name.

  • name – Argument name.

  • position – Argument position.

Returns:

Object.

children_class

alias of Snak