for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
"""
Similar to the main definitions module but these definitions do not
yet have a stable interface.
from ..definitions import X, ConstructionWithContainer
from ..interfaces import SpecialDepDefinition, ReadableContainer
class PlainFunction(SpecialDepDefinition[X]):
"""Preserves a function without any dep injection performed on it"""
callable_func: X
def __init__(self, callable_func: X):
""""""
self.callable_func = callable_func
def get_instance(self, _container: ReadableContainer) -> X:
return self.callable_func
class AsyncConstructionWithContainer(ConstructionWithContainer):
pass