class documentation

class Ok(Generic[T_co]):

Constructor: Ok(value)

View In Hierarchy

A value that indicates success and which stores arbitrary data for the return value.

Method __eq__ Undocumented
Method __hash__ Undocumented
Method __init__ Undocumented
Method __iter__ Undocumented
Method __ne__ Undocumented
Method __repr__ Undocumented
Method err Return None.
Method ok Return the value.
Method unwrap Return the value.
Class Variable __match_args__ Undocumented
Class Variable __slots__ Undocumented
Instance Variable _value Undocumented
def __eq__(self, other: object) -> bool:

Undocumented

def __hash__(self) -> int:

Undocumented

def __init__(self, value: T_co):

Undocumented

def __iter__(self) -> Iterator[T_co]:

Undocumented

def __ne__(self, other: object) -> bool:

Undocumented

def __repr__(self) -> str:

Undocumented

def err(self):

Return None.

def ok(self) -> T_co:

Return the value.

def unwrap(self) -> T_co:

Return the value.

__match_args__: tuple[str, ...] =

Undocumented

__slots__: tuple[str, ...] =

Undocumented

_value =

Undocumented