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

Method list_attributes

bpython/autocomplete.py:459–464  ·  view source on GitHub ↗
(self, obj: Any)

Source from the content-addressed store, hash-verified

457 )
458
459 def list_attributes(self, obj: Any) -> list[str]:
460 # TODO: re-implement dir without AttrCleaner here
461 #
462 # Note: accessing `obj.__dir__` via `getattr_static` is not side-effect free.
463 with inspection.AttrCleaner(obj):
464 return dir(obj)
465
466
467class DictKeyCompletion(BaseCompletionType):

Callers 1

attr_lookupMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected