class Operator:
@classmethod
def from_config(scheme: str, **kwargs)-> Operator: ...
@classmethod
def from_async_operator(operator: AsyncOperator) -> Operator: ...
class AsyncOperator:
@classmethod
def from_config(scheme: str, **kwargs)-> AsyncOperator: ...
@classmethod
def from_operator(operator: Operator) -> AsyncOperator: ...
We use the factory mode instead of __init__ completely
Originally posted by @Zheaoli in #3514 (comment)
We use the factory mode instead of
__init__completelyOriginally posted by @Zheaoli in #3514 (comment)