registries.items

Types for items.

New in version 1.0.

Module Attributes

RegistryItemType

A generic type for items stored in a registry.

class registries.items.RegistryItemType[source]

A generic type for items stored in a registry.

This can be used for subclasses of Registry, mixins, or other utility code that need to stay generic. In normal usage, an explicit type will be provided when subclassing instead.

New in version 1.0.

alias of TypeVar(‘RegistryItemType’)

__bound__ = None[source]
__constraints__ = ()[source]
__contravariant__ = False[source]
__covariant__ = False[source]
__name__ = 'RegistryItemType'[source]