MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / __iadd__

Function __iadd__

lib/sqlalchemy/orm/collections.py:1231–1240  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

1229 return extend
1230
1231 def __iadd__(fn):
1232 def __iadd__(self, iterable):
1233 # list.__iadd__ takes any iterable and seems to let TypeError
1234 # raise as-is instead of returning NotImplemented
1235 for value in list(iterable):
1236 self.append(value)
1237 return self
1238
1239 _tidy(__iadd__)
1240 return __iadd__
1241
1242 def pop(fn):
1243 def pop(self, index=-1):

Callers

nothing calls this directly

Calls 2

_tidyFunction · 0.85
appendMethod · 0.45

Tested by

no test coverage detected