MCPcopy Create free account
hub / github.com/dabeaz-course/python-mastery / __new__

Method __new__

Solutions/7_6/structure.py:12–14  ·  view source on GitHub ↗
(meta, name, bases, methods)

Source from the content-addressed store, hash-verified

10
11 @staticmethod
12 def __new__(meta, name, bases, methods):
13 methods = methods.maps[0]
14 return super().__new__(meta, name, bases, methods)
15
16class Structure(metaclass=StructureMeta):
17 _fields = ()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected