MCPcopy Create free account
hub / github.com/ipython/ipython / get__all__entries

Function get__all__entries

IPython/core/completer.py:736–743  ·  view source on GitHub ↗

returns the strings in the __all__ attribute

(obj)

Source from the content-addressed store, hash-verified

734
735
736def get__all__entries(obj):
737 """returns the strings in the __all__ attribute"""
738 try:
739 words = getattr(obj, '__all__')
740 except:
741 return []
742
743 return [w for w in words if isinstance(w, str)]
744
745
746def match_dict_keys(keys: List[str], prefix: str, delims: str):

Callers 1

attr_matchesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected