streamfield_tools/registry.py
def register_block(self, block_type, block):
        """
        Registers `block` to `block_type` in the registry.
        """

        self._verify_block(block_type, block)
        self._registry[block_type] = block
def register_block(self, block_type, block):
        """
        Registers `block` to `block_type` in the registry.
        """

        self._verify_block(block_type, block)
        self._registry[block_type] = block
Registers `block` to `block_type` in the registry.