16 lines
349 B
Python
16 lines
349 B
Python
from collections.abc import Callable
|
|
|
|
from pydantic import BaseModel
|
|
|
|
|
|
class Transformation(BaseModel):
|
|
"""
|
|
The function have to have at least 2 arguments: sources and targets
|
|
Other arguments will came throught extra_kwrds
|
|
|
|
The function will have to return metadata as dict
|
|
"""
|
|
|
|
function: Callable
|
|
extra_kwrds: dict = {}
|