MCPcopy Index your code
hub / github.com/bpython/bpython / module_attr_matches

Method module_attr_matches

bpython/importcompletion.py:129–131  ·  view source on GitHub ↗

Only attributes which are modules to replace name with

(self, name: str)

Source from the content-addressed store, hash-verified

127 return matches
128
129 def module_attr_matches(self, name: str) -> set[str]:
130 """Only attributes which are modules to replace name with"""
131 return self.attr_matches(name, only_modules=True)
132
133 def complete(self, cursor_offset: int, line: str) -> set[str] | None:
134 """Construct a full list of possibly completions for imports."""

Callers 1

completeMethod · 0.95

Calls 1

attr_matchesMethod · 0.95

Tested by

no test coverage detected