Module omnipy.compute.mixins.typedefs
Overview
View Source
from typing import Protocol, TypeVar
from omnipy.data.dataset import Dataset
from omnipy.data.model import Model
InputT = TypeVar('InputT', bound=object)
ModelInputT = TypeVar('ModelInputT', bound=Model)
ReturnT = TypeVar('ReturnT', bound=object)
ModelReturnT = TypeVar('ModelReturnT', bound=Model)
InputTypeT = InputT | ModelInputT
InputDatasetT = Dataset[Model[InputT]] | Dataset[ModelInputT]
ReturnDatasetT = Dataset[Model[ReturnT]] | Dataset[ModelReturnT]
class IsIterateInnerCallable(Protocol):
""""""
def __call__(
self,
data_file: InputT | ModelInputT,
*args: object,
**kwargs: object,
) -> ReturnT | ModelReturnT:
...
__name__: str
Variables
Classes
IsIterateInnerCallable
View Source
class IsIterateInnerCallable(Protocol):
""""""
def __call__(
self,
data_file: InputT | ModelInputT,
*args: object,
**kwargs: object,
) -> ReturnT | ModelReturnT:
...
__name__: str
Methods
call
def __call__(
self,
data_file: Union[~InputT, ~ModelInputT],
*args: object,
**kwargs: object
) -> Union[~ReturnT, ~ModelReturnT]
Call self as a function.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
data_file |
Union[~InputT, ~ModelInputT] |
||
args |
object |
||
kwargs |
object |
Returns:
Type | Description |
---|---|
Union[~ReturnT, ~Model[ReturnT](#returnt)] |
View Source
def __call__(
self,
data_file: InputT | ModelInputT,
*args: object,
**kwargs: object,
) -> ReturnT | ModelReturnT:
...