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


##########
bindings/python/python/opendal/__init__.py:
##########
@@ -18,31 +18,16 @@
 # ruff: noqa: D104
 from __future__ import annotations
 
-from typing import TYPE_CHECKING
-
-if TYPE_CHECKING:
-    __version__: str
-    from opendal import capability, exceptions, file, layers, services, types
-else:
-    from opendal._opendal import (
-        __version__,  # noqa: F401
-        capability,
-        exceptions,
-        file,
-        layers,
-        services,
-        types,
-    )
-
-from opendal.operator import AsyncOperator, Operator  # pyright:ignore
+from opendal._opendal import *  # ty: ignore
+from opendal.operator import AsyncOperator, Operator

Review Comment:
   > In fact I don't understand why you moved *.pyi into its own package. it 
looks less clean
   
   This is done by a recent update of `pyo3-stub-gen` that is used to generate 
stubs. the inclusion of all the entries in `__all__` is actually working much 
better for me with both `ty` and `pyright` in zed 



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