turbosnake/_components.py
def insert(self, context: 'ComponentRenderingContext' = None):
        """Inserts this component into current rendering context."""
        assert not self.is_mounted(), 'Attempt to render a mounted component'

        if not context:
            context = get_render_context(ComponentRenderingContext.CONTEXT_ID)

            assert context, 'Attempt to render component outside of a rendering context'

        context.append(self)
Inserts this component into current rendering context.
Inserts this component into current rendering context.
Inserts this component into current rendering context .
def insert(self, context: 'ComponentRenderingContext' = None):
        assert not self.is_mounted(), 'Attempt to render a mounted component'
        if not context:
            context = get_render_context(ComponentRenderingContext.CONTEXT_ID)
            assert context, 'Attempt to render component outside of a rendering context'
        context.append(self)
def insert ( self , context : 'ComponentRenderingContext' = None ) : assert not self . is_mounted ( ) , 'Attempt to render a mounted component' if not context : context = get_render_context ( ComponentRenderingContext . CONTEXT_ID ) assert context , 'Attempt to render component outside of a rendering context' context . append ( self )
Inserts this component into current rendering context.
Inserts this component into current rendering context .
"""Inserts this component into current rendering context."""
self
context
'ComponentRenderingContext'