budosystems.typehints

Convenience module for commonly used type-hints.

Module Attributes

IMapStrAny

Mapping with string keys, read-only (Immutable) operations

MMapStrAny

Mapping with string keys, read-write (Mutable) operations

DictStrAny

Dictionary with string keys

DictStrBool

Dictionary with string keys and boolean values

OptStr

Optional string

OptInt

Optional integer

OptBool

Optional boolean

OptDate

Optional date

OptDateTime

Optional datetime

OptTime

Optional time

OptTimeDelta

Optional timedelta (a.k.a.

Bases

Tuple of concrete types, used for bases in metaclasses

BoolBinOp

Signature of comparators in the operator lib

PropType

Property type type-variable for typed property

StrProperty

String property

IntProperty

Integer property

Classes

AttrsClass

Protocol-ly way of identifying attrs classes (if needed for typehints).

DataClass

Protocol-ly way of identifying dataclasses (if needed for typehints).

DataClassArgs

Represents all the optional parameter options of a dataclass.

Property

Generic implementation of the property class.

IMapStrAny

Mapping with string keys, read-only (Immutable) operations

alias of Mapping[str, Any]

MMapStrAny

Mapping with string keys, read-write (Mutable) operations

alias of MutableMapping[str, Any]

DictStrAny

Dictionary with string keys

DictStrBool

Dictionary with string keys and boolean values

OptStr

Optional string

alias of Optional[str]

OptInt

Optional integer

alias of Optional[int]

OptBool

Optional boolean

alias of Optional[bool]

OptDate

Optional date

alias of Optional[date]

OptDateTime

Optional datetime

alias of Optional[datetime]

OptTime

Optional time

alias of Optional[time]

OptTimeDelta

Optional timedelta (a.k.a. duration)

alias of Optional[timedelta]

Bases

Tuple of concrete types, used for bases in metaclasses

alias of Tuple[type, …]

BoolBinOp

Signature of comparators in the operator lib

alias of Callable[[Any, Any], bool]

class PropType

Property type type-variable for typed property

alias of TypeVar(‘PropType’)

StrProperty

String property

alias of Property[str]

IntProperty

Integer property

alias of Property[int]