Skip to content

Some

Bases: Option[T]

Option variant representing the presence of a value.

For more documentation, see the Option[T] class.

Attributes:

Name Type Description
value T

The contained value.

Example:

>>> import pyochain as pc
>>> pc.Some(42)
Some(42)

__new__(value)

Bypass Option's redirect by directly creating a Some instance.