pg.hyper.ValueReference

Accessible via pg.hyper.ValueReference.

class ValueReference(reference_paths)[source]

Bases: pg.hyper.DerivedValue

Class that represents a value referencing another value.

Methods:

custom_apply(path, value_spec, allow_partial)

Implement pg_typing.CustomTyping interface.

derive(referenced_value)

Derive value by return a copy of the referenced value.

custom_apply(path, value_spec, allow_partial, child_transform=None)[source]

Implement pg_typing.CustomTyping interface.

Return type:

Tuple[bool, pg.hyper.DerivedValue]

derive(referenced_value)[source]

Derive value by return a copy of the referenced value.

Return type:

Any