Optional

Standard library class
class Optional
@tuple
class Optional[T]
Fields 1
T type
Constructors 2
__new__
__new__()
__new__
@overload
__new__(what: T)
Special methods 15
__to_py__
__to_py__(self)
__from_py__
__from_py__(o: cobj)
__to_gpu__
__to_gpu__(self, cache: AllocCache)
Added by internal.gpu
__from_gpu__
__from_gpu__(self, other: Optional[T])
Added by internal.gpu
__from_gpu_new__
__from_gpu_new__(other: Optional[T])
Added by internal.gpu
__has__
__has__(self)
__val__
__val__(self)
__val_or__
__val_or__(self, default: T)
__bool__
__bool__(self)
__eq__
__eq__(self, other: T)
@overload
__eq__(self, other: Optional[T])
__ne__
__ne__(self, other: T)
@overload
__ne__(self, other: Optional[T])
__str__
__str__(self)
__repr__
__repr__(self)
__is_optional__
__is_optional__(self, other: Optional[T])
__unwrap__
__unwrap__(self)