Skip to content

Commit 5b646a7

Browse files
zekeclaude
andcommitted
refactor: remove get_path_url from module_client skip list
Since get_path_url is now imported directly in __init__.py (not from _module_client), it should not be in the skip list for symbols that are imported later from _module_client. This ensures get_path_url gets proper __module__ attribution like other direct imports. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 7a3f981 commit 5b646a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/replicate/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
if not __name.startswith("__"):
108108
try:
109109
# Skip symbols that are imported later from _module_client
110-
if __name in ("get_path_url", "run", "use"):
110+
if __name in ("run", "use"):
111111
continue
112112
__locals[__name].__module__ = "replicate"
113113
except (TypeError, AttributeError):

0 commit comments

Comments
 (0)