MCPcopy Create free account
hub / github.com/bslatkin/effectivepython / __init__

Method __init__

example_code/item_124_example_12.py:27–28  ·  view source on GitHub ↗
(self, value: int)

Source from the content-addressed store, hash-verified

25
26class SecondClass:
27 def __init__(self, value: int) -> None:
28 self.value = value
29
30second = SecondClass(5)
31first = FirstClass(second)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected