Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/fluentpython/example-code-2e
/ __add__
Method
__add__
24-class-metaprog/hours/hours.py:109–112 ·
view source on GitHub ↗
(self, other)
Source
from the content-addressed store, hash-verified
107
yield
self.s
108
109
def
__add__(self, other):
110
if
not isinstance(other, Hours):
111
return
NotImplemented
112
return
Hours(*(a + b
for
a, b in zip(self, other)))
113
114
115
H = Hours
Callers
nothing calls this directly
Calls
1
Hours
Class · 0.85
Tested by
no test coverage detected