Skip to content

AppSignal

Base classes

Name Children Inherits
Signal
anyenv.signals.core
Descriptor: define at class level, get BoundSignal per instance.
Generic
typing
Abstract base class for generic types.

⋔ Inheritance diagram

graph TD
  4180415866["examples.AppSignal"]
  2761987693["core.Signal"]
  3481597255["typing.Generic"]
  2751680898["builtins.object"]
  2761987693 --> 4180415866
  3481597255 --> 2761987693
  2751680898 --> 3481597255
  3481597255 --> 4180415866

🛈 DocStrings

Bases: Signal[E]

Application-specific signal constrained to allowed event types.

Using a bounded TypeVar ensures that only User or FileEvent can be used as the signal's event type.

Source code in src/anyenv/signals/examples.py
class AppSignal[E: AppEvents](Signal[E]):
    """Application-specific signal constrained to allowed event types.

    Using a bounded TypeVar ensures that only User or FileEvent
    can be used as the signal's event type.
    """

:fa-brands-github: Show source on GitHub