Skip to content

Commit 3822d65

Browse files
committed
Update module_loading documents
1 parent 087f1c5 commit 3822d65

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

graphene/utils/module_loading.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@
55
def import_string(dotted_path, dotted_attributes=None):
66
"""
77
Import a dotted module path and return the attribute/class designated by the
8-
last name in the path. Raise ImportError if the import failed.
8+
last name in the path. When a dotted attribute path is also provided, the
9+
dotted attribute path would be applied to the attribute/class retrieved from
10+
the first step, and return the corresponding value designated by the
11+
attribute path. Raise ImportError if the import failed.
912
"""
1013
try:
1114
module_path, class_name = dotted_path.rsplit('.', 1)

0 commit comments

Comments
 (0)