chitralverma commented on code in PR #7883:
URL: https://github.com/apache/opendal/pull/7883#discussion_r3563120745


##########
bindings/python/python/opendal/operator.pyi:
##########
@@ -162,6 +162,35 @@ class AsyncOperator:
             An awaitable that returns True if the path exists, False otherwise.
         """
     @classmethod
+    def from_config(cls, /, config: ServiceConfig) -> AsyncOperator:
+        """
+        Create a new `AsyncOperator` from a typed service config.
+
+        The config binds its own scheme, so there is no scheme argument and no
+        way to pair a config with the wrong service.

Review Comment:
   Good catch, trimmed. Kept a short note that the config's type fixes the 
scheme (so it can't be mismatched), dropped the "no scheme argument" 
restatement.



-- 
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