Source code for jivago.lang.annotations
from typing import Callable, TypeVar
from jivago.lang.registry import Annotation
T_OVERRIDABLE = TypeVar("T_OVERRIDABLE", Callable, property)
@Annotation
def Inject(fun: Callable) -> Callable:
return fun
@Annotation
def Serializable(clazz: type) -> type:
return clazz
@Annotation
def BackgroundWorker(clazz: type) -> type:
return clazz