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

Method __repr__

example_code/item_100.py:62–63  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

60 self.weight = weight
61
62 def __repr__(self):
63 return f"Tool({self.name!r}, {self.weight})"
64
65tools = [
66 Tool("level", 3.5),

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected