Example #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)
Example #2
0
 def cb(model: BaseModel, *_args, **_kwargs):
     model._lineage = "bar"
     return model
Example #3
0
 def cb2(model: BaseModel, *args, **kwargs):
     return model.prepare(*args, **kwargs)
Example #4
0
 def cb(model: BaseModel, *_args, **_kwargs):
     model._gene = "bar"
     return model