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

Method __add__

lib/sqlalchemy/sql/base.py:920–932  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

918 self.__dict__.update(kw)
919
920 def __add__(self, other):
921 o1 = self.__class__.__new__(self.__class__)
922 o1.__dict__.update(self.__dict__)
923
924 if set(other).difference(self._cache_attrs):
925 raise TypeError(
926 "dictionary contains attributes not covered by "
927 "Options class %s: %r"
928 % (self, set(other).difference(self._cache_attrs))
929 )
930
931 o1.__dict__.update(other)
932 return o1
933
934 def __eq__(self, other):
935 # TODO: very inefficient. This is used only in test suites

Callers

nothing calls this directly

Calls 3

__new__Method · 0.45
updateMethod · 0.45
differenceMethod · 0.45

Tested by

no test coverage detected