Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use .extend instead of +
  • Loading branch information
loic-simon committed Aug 30, 2025
commit a952c2a6c8d589dd1e0af2cc11d3fecd001b807a
4 changes: 2 additions & 2 deletions Lib/_pyrepl/_module_completer.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ def _find_modules(self, path: str, prefix: str) -> list[str]:
if mod_info.ispkg and mod_info.name == segment]
modules = self.iter_submodules(modules)

module_names = ([module.name for module in modules]
+ HARDCODED_SUBMODULES.get(path, []))
module_names = [module.name for module in modules]
module_names.extend(HARDCODED_SUBMODULES.get(path, ()))
return [module_name for module_name in module_names
if self.is_suggestion_match(module_name, prefix)]

Expand Down
Loading