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

Method __init__

Lib/test/test_set.py:730–732  ·  view source on GitHub ↗
(self, arg, newarg=None)

Source from the content-addressed store, hash-verified

728
729 class subclass_with_init(set):
730 def __init__(self, arg, newarg=None):
731 super().__init__(arg)
732 self.newarg = newarg
733 u = subclass_with_init([1, 2], newarg=3)
734 self.assertIs(type(u), subclass_with_init)
735 self.assertEqual(set(u), {1, 2})

Callers

nothing calls this directly

Calls 2

superClass · 0.85
__init__Method · 0.45

Tested by

no test coverage detected