Beispiel #1
0
def _default_model_callback(model: BaseModel, **kwargs) -> BaseModel:
    # we could filter kwargs, but it's better not to - this will detect if we pass useless stuff
    return model.prepare(**kwargs)
Beispiel #2
0
 def cb2(model: BaseModel, *args, **kwargs):
     return model.prepare(*args, **kwargs)