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

Method __init__

example_code/item_124_example_12.py:23–24  ·  view source on GitHub ↗
(self, value: SecondClass)

Source from the content-addressed store, hash-verified

21
22class FirstClass:
23 def __init__(self, value: SecondClass) -> None:
24 self.value = value
25
26class SecondClass:
27 def __init__(self, value: int) -> None:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected