snakia.property.property

Classes

Generic()

Abstract base class for generic types.

Property([fget, fset, fdel])

A property that can be set, get, and deleted.

TypeVar(name, *constraints[, bound, ...])

Type variable.

class snakia.property.property.Property(fget=<function func>, fset=<function func>, fdel=<function func>)[source]

Bases: Generic[T]

A property that can be set, get, and deleted.

__init__(fget=<function func>, fset=<function func>, fdel=<function func>)[source]
deleter(fdel, /)[source]

Descriptor deleter.

Return type:

Property[TypeVar(T)]

getter(fget, /)[source]

Descriptor getter.

Return type:

Property[TypeVar(T)]

property name: str
setter(fset, /)[source]

Descriptor setter.

Return type:

Property[TypeVar(T)]