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

Method get

example_code/item_124_example_06.py:29–30  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

27 value += offset # Oops: forgot "self."
28
29 def get(self) -> int:
30 self.value # Oops: forgot "return"
31
32counter = Counter()
33counter.add(5)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected