Skip to content

Commit

Permalink
fix documentation error in _get_importfrom_module_name
Browse files Browse the repository at this point in the history
Co-authored-by: Floyd Hightower <[email protected]>
  • Loading branch information
mCallesen and fhightower authored Jun 17, 2021
1 parent fb3caaf commit ba6ae00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion d8s_python/python_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ def _get_importfrom_module_name(node: ImportFrom) -> str:
The module name on the ast.ImportFrom node can be None for relative imports
In this case, this function will return the name as the dots from the import statement.
A few examples:
"from requests import get" -> "get"
"from requests import get" -> "requests"
"from . import *" -> "."
"from .. import *" -> ".."
"from .foo import bar" -> "foo"
Expand Down

0 comments on commit ba6ae00

Please sign in to comment.