Skip to content

Commit ba6ae00

Browse files
fix documentation error in _get_importfrom_module_name
Co-authored-by: Floyd Hightower <floyd.hightower27@gmail.com>
1 parent fb3caaf commit ba6ae00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

d8s_python/python_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ def _get_importfrom_module_name(node: ImportFrom) -> str:
370370
The module name on the ast.ImportFrom node can be None for relative imports
371371
In this case, this function will return the name as the dots from the import statement.
372372
A few examples:
373-
"from requests import get" -> "get"
373+
"from requests import get" -> "requests"
374374
"from . import *" -> "."
375375
"from .. import *" -> ".."
376376
"from .foo import bar" -> "foo"

0 commit comments

Comments
 (0)