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

Method __new__

IPython/lib/tests/test_pretty.py:229–230  ·  view source on GitHub ↗
(cls, name)

Source from the content-addressed store, hash-verified

227
228class MetaClass(type):
229 def __new__(cls, name):
230 return type.__new__(cls, name, (object,), {'name': name})
231
232 def __repr__(self):
233 return "[CUSTOM REPR FOR CLASS %s]" % self.name

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected