MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / __add__

Method __add__

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

Source from the content-addressed store, hash-verified

930 self.__dict__.update(kw)
931
932 def __add__(self, other):
933 o1 = self.__class__.__new__(self.__class__)
934 o1.__dict__.update(self.__dict__)
935
936 if set(other).difference(self._cache_attrs):
937 raise TypeError(
938 "dictionary contains attributes not covered by "
939 "Options class %s: %r"
940 % (self, set(other).difference(self._cache_attrs))
941 )
942
943 o1.__dict__.update(other)
944 return o1
945
946 def __eq__(self, other):
947 # 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