MCPcopy Index your code
hub / github.com/RustPython/RustPython / __new__

Method __new__

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

Source from the content-addressed store, hash-verified

1364 # Testing __qualname__ and __classcell__ in __slots__
1365 class Meta(type):
1366 def __new__(cls, name, bases, namespace, attr):
1367 self.assertIn(attr, namespace)
1368 return super().__new__(cls, name, bases, namespace)
1369
1370 class C1:
1371 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