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

Method __dir__

IPython/utils/tests/test_io.py:70–73  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

68 # Cause a failure from getattr and dir(). (Issue #6386)
69 class BadStringIO(StringIO):
70 def __dir__(self):
71 attrs = super().__dir__()
72 attrs.append('name')
73 return attrs
74 with self.assertWarns(DeprecationWarning):
75 iostream = IOStream(BadStringIO())
76 iostream.write('hi, bad iostream\n')

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected