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

Method __new__

Solutions/9_3/structly/structure.py:14–16  ·  view source on GitHub ↗
(meta, name, bases, methods)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected