We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 087f1c5 commit 3822d65Copy full SHA for 3822d65
graphene/utils/module_loading.py
@@ -5,7 +5,10 @@
5
def import_string(dotted_path, dotted_attributes=None):
6
"""
7
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.
+ 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.
12
13
try:
14
module_path, class_name = dotted_path.rsplit('.', 1)
0 commit comments