Skip to content

ContextRegistration

Base classes

Name Children Inherits
Generic
typing
Abstract base class for generic types.

⋔ Inheritance diagram

graph TD
  2613308695["context.ContextRegistration"]
  3481597255["typing.Generic"]
  2751680898["builtins.object"]
  3481597255 --> 2613308695
  2751680898 --> 3481597255

🛈 DocStrings

Registration of a context type.

Source code in src/slashed/context.py
@dataclass
class ContextRegistration[T]:
    """Registration of a context type."""

    context_type: type[T]
    data: T
    metadata: dict[str, Any]

:fa-brands-github: Show source on GitHub