Types

Typing constructs used in annotations throughout the API documentation.

Type Aliases

SyncObject: TypeAlias = zyncio.SyncMixin | zyncio.ZyncDelegator[zyncio.SyncMixin]

An instance of zyncio.SyncMixin or zyncio.ZyncDelegator[zyncio.SyncMixin]

AsyncObject: TypeAlias = zyncio.AsyncMixin | zyncio.ZyncDelegator[zyncio.AsyncMixin]

An instance of zyncio.AsyncMixin or zyncio.ZyncDelegator[zyncio.AsyncMixin]

Type Variables

TypeVars used in type annotations. These are presented here for documentation purposes, but should not be treated as part of ZyncIO’s public API.

T

Invariant TypeVar.

T_co

Covariant TypeVar.

ReturnT

Invariant TypeVar.

ReturnT_co

Covariant TypeVar.

YieldT

Invariant TypeVar.

YieldT_co

Covariant TypeVar.

SendT_contra

Contravariant TypeVar.

CallableT

Invariant TypeVar bound to collections.abc.Callable[…, typing.Any].

P

A ParamSpec.

SyncT

Invariant TypeVar bound to typing.Union[zyncio.SyncMixin, zyncio.ZyncDelegator[zyncio.SyncMixin]].

AsyncT

Invariant TypeVar bound to typing.Union[zyncio.AsyncMixin, zyncio.ZyncDelegator[zyncio.AsyncMixin]].

SyncClassT

Invariant TypeVar bound to zyncio.SyncMixin.

AsyncClassT

Invariant TypeVar bound to zyncio.AsyncMixin.