Skip to content

Commit 7a3f981

Browse files
zekeclaude
andcommitted
refactor: import get_path_url directly in __init__.py instead of via module_client
Move get_path_url import to follow the same pattern as other lib/ exports (FileOutput, Model, etc.) which are imported directly in __init__.py. The _module_client.py is specifically for resource proxies and module-level access patterns like replicate.models.list(), not for all top-level exports. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 31536a8 commit 7a3f981

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/replicate/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
from .lib._models import Model as Model, Version as Version, ModelVersionIdentifier as ModelVersionIdentifier
4444
from ._base_client import DefaultHttpxClient, DefaultAioHttpClient, DefaultAsyncHttpxClient
4545
from ._utils._logs import setup_logging as _setup_logging
46+
from .lib._predictions_use import get_path_url as get_path_url
4647

4748
__all__ = [
4849
"types",
@@ -257,5 +258,4 @@ def _reset_client() -> None: # type: ignore[reportUnusedFunction]
257258
collections as collections,
258259
deployments as deployments,
259260
predictions as predictions,
260-
get_path_url as get_path_url,
261261
)

src/replicate/_module_client.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919
from . import _load_client
2020
from ._utils import LazyProxy
21-
from .lib._predictions_use import get_path_url as get_path_url
2221

2322

2423
class FilesResourceProxy(LazyProxy["FilesResource"]):

0 commit comments

Comments
 (0)