MCPcopy Index your code
hub / github.com/python/cpython / __new__

Method __new__

Lib/test/test_descr.py:1450–1452  ·  view source on GitHub ↗
(cls, name, bases, namespace, attr)

Source from the content-addressed store, hash-verified

1448 # Testing __qualname__ and __classcell__ in __slots__
1449 class Meta(type):
1450 def __new__(cls, name, bases, namespace, attr):
1451 self.assertIn(attr, namespace)
1452 return super().__new__(cls, name, bases, namespace)
1453
1454 class C1:
1455 def __init__(self):

Callers

nothing calls this directly

Calls 3

superClass · 0.85
assertInMethod · 0.80
__new__Method · 0.45

Tested by

no test coverage detected