Zheaoli opened a new issue, #3537:
URL: https://github.com/apache/incubator-opendal/issues/3537

                 This could be better
   
   ```python
   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 
https://github.com/apache/incubator-opendal/pull/3514#discussion_r1386123571_
               


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to