turbosnake/_utils.py
def component(component_class: Type[Component]):
    """Decorator that uses signature of decorated function to create a component inserter for given component type.

    Usage:

    @component(MyComponent)
    def my_component(*, prop1: int, prop2: Optional[str], prop3 = 'foo', **_):
        ...

    Purpose of this decorator is to (unlike plain call of component_inserter)

    - provide property name/type hints for IDE

    - provide default values for properties
    """
    return partial(_component_inserter_declaration, component_class)
Decorator that uses signature of decorated function to create a component inserter for given component type.

    Usage:

    @component(MyComponent)
    def my_component(*, prop1: int, prop2: Optional[str], prop3 = 'foo', **_):
        ...

    Purpose of this decorator is to (unlike plain call of component_inserter)

    - provide property name/type hints for IDE

    - provide default values for properties
    
Decorator that uses signature of decorated function to create a component inserter for given component type.
Usage.
Decorator that uses signature of decorated function to create a component inserter for given component type . Usage .
def component(component_class: Type[Component]):
    return partial(_component_inserter_declaration, component_class)
def component ( component_class : Type [ Component ] ) : return partial ( _component_inserter_declaration , component_class )
Decorator that uses signature of decorated function to create a component inserter for given component type.
Decorator that uses signature of decorated function to create a component inserter for given component type .
"""Decorator that uses signature of decorated function to create a component inserter for given component type.

    Usage:

    @component(MyComponent)
    def my_component(*, prop1: int, prop2: Optional[str], prop3 = 'foo', **_):
        ...

    Purpose of this decorator is to (unlike plain call of component_inserter)

    - provide property name/type hints for IDE

    - provide default values for properties
    """
component_class
Type[Component]
prop1


Purpose of this decorator is to (unlike plain call of component_inserter)

provide property name/type hints for IDE

provide default values for properties
Purpose of this decorator is to ( unlike plain call of component_inserter ) provide property name / type hints for IDE provide default values for properties