SomeValueSnak

class SomeValueSnak(*args, **kwargs)[source]

Bases: Snak

Some-value snak.

Parameters:

property – Property.

template_class

alias of SomeValueSnakTemplate

variable_class

alias of SomeValueSnakVariable

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.

__init__(property: VTProperty) None[source]
class SomeValueSnakTemplate(*args, **kwargs)[source]

Bases: SnakTemplate

Some-value snak template.

Parameters:

property – Property, property template, or property variable.

object_class

alias of SomeValueSnak

__init__(property: VTProperty) None[source]
class SomeValueSnakVariable(name: str, variable_class: type[Variable] | type[Term] | None = None)[source]

Bases: SnakVariable

Some-value snak variable.

Parameters:

name – Name.

object_class

alias of SomeValueSnak