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

Method __dir__

IPython/utils/tests/test_dir2.py:53–54  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

51
52 class SillierWithDir(MisbehavingGetattr):
53 def __dir__(self):
54 return ['some_method']
55
56 for bad_klass in (MisbehavingGetattr, SillierWithDir):
57 res = dir2(bad_klass())

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected