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

Method __init__

example_code/item_056_example_12.py:29–32  ·  view source on GitHub ↗
(self, name: str, x: int, y: int)

Source from the content-addressed store, hash-verified

27 y: Final[int]
28
29 def __init__(self, name: str, x: int, y: int) -> None:
30 self.name = name
31 self.x = x
32 self.y = y
33
34 def __setattr__(self, key: str, value: Any) -> None:
35 if key in self.__annotations__ and key not in dir(self):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected