How to use the frozenlist.FrozenList function in frozenlist

To help you get started, we’ve selected a few frozenlist examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github aio-libs / aiosignal / aiosignal / __init__.py View on Github external
from frozenlist import FrozenList

__version__ = '1.0.0'

__all__ = ('Signal',)


class Signal(FrozenList):
    """Coroutine-based signal implementation.

    To connect a callback to a signal, use any list method.

    Signals are fired using the send() coroutine, which takes named
    arguments.
    """

    __slots__ = ('_owner',)

    def __init__(self, owner):
        super().__init__()
        self._owner = owner

    def __repr__(self):
        return ''.format(self._owner,

frozenlist

A list-like structure which implements collections.abc.MutableSequence

Apache-2.0
Latest version published 11 days ago

Package Health Score

91 / 100
Full package analysis

Popular frozenlist functions

Similar packages