Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
wbbradley committed Jul 9, 2024
1 parent 8236098 commit 7119235
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/autoimport/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,8 @@ def _find_package_in_typing(name: str) -> Optional[str]:
return None

def _get_disable_move_to_top(self) -> bool:
"""When parsing to the cli via --config-file the config becomes nested."""
"""Fetch the disable_move_to_top configuration value."""
# When parsing to the cli via --config-file the config becomes nested.
disable_move_to_top = self.config.get("disable_move_to_top")
if disable_move_to_top is not None:
return disable_move_to_top
Expand All @@ -428,7 +429,8 @@ def _get_disable_move_to_top(self) -> bool:
)

def _get_additional_statements(self) -> Dict[str, str]:
"""When parsing to the cli via --config-file the config becomes nested."""
"""Fetch the common_statements configuration value."""
# When parsing to the cli via --config-file the config becomes nested.
config_statements = self.config.get("common_statements")
if config_statements:
return config_statements
Expand Down

0 comments on commit 7119235

Please sign in to comment.