Skip to content

Commit

Permalink
Automated pre-commit update
Browse files Browse the repository at this point in the history
  • Loading branch information
tomcodgen authored and github-actions[bot] committed Feb 25, 2025
1 parent a443fdd commit 1b690ce
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/codegen/sdk/python/import_resolution.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def resolve_import(self, base_path: str | None = None, *, add_module_name: str |
if file.get_node_from_wildcard_chain(symbol_name):
return ImportResolution(from_file=file, symbol=None, imports_file=True)
else:
#This is most likely a broken import
# This is most likely a broken import
return ImportResolution(from_file=file, symbol=None)
else:
return ImportResolution(from_file=file, symbol=symbol)
Expand All @@ -135,13 +135,12 @@ def resolve_import(self, base_path: str | None = None, *, add_module_name: str |
if from_file.get_node_from_wildcard_chain(symbol_name):
return ImportResolution(from_file=from_file, symbol=None, imports_file=True)
else:
#This is most likely a broken import
# This is most likely a broken import
return ImportResolution(from_file=from_file, symbol=None)

else:
return ImportResolution(from_file=from_file, symbol=symbol)


# =====[ Case: Can't resolve the import ]=====
if base_path == "":
# Try to resolve with "src" as the base path
Expand Down

0 comments on commit 1b690ce

Please sign in to comment.