Skip to content

Commit

Permalink
Specify primary or "real" alternative imports
Browse files Browse the repository at this point in the history
  • Loading branch information
zz1874 committed Nov 6, 2023
1 parent 1fd52e2 commit 0b49d94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PyPI_analysis/detect_imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def alternative_imports(parsed_code: ast.Module):
name = alias.name.split(".", 1)[0]
if is_external_import(name):
yield {
"Alternative imports": ParsedImport(
"Alternative imports (primary)": ParsedImport(
name=name,
source=source.supply(
lineno=node.lineno
Expand All @@ -134,7 +134,7 @@ def alternative_imports(parsed_code: ast.Module):
name = node_import.module.split(".", 1)[0]
if is_external_import(name):
yield {
"Alternative imports": ParsedImport(
"Alternative imports (primary)": ParsedImport(
name=name,
source=source.supply(
lineno=node.lineno
Expand Down

0 comments on commit 0b49d94

Please sign in to comment.