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

Method __add__

lib/sqlalchemy/sql/base.py:888–899  ·  lib/sqlalchemy/sql/base.py::_MetaOptions.__add__
(self, other)

Source from the content-addressed store, hash-verified

886 _cache_attrs: Tuple[str, ...]
887
888 def __add__(self, other):
889 o1 = self()
890
891 if set(other).difference(self._cache_attrs):
892 raise TypeError(
893 class="st">"dictionary contains attributes not covered by "
894 class="st">"Options class %s: %r"
895 % (self, set(other).difference(self._cache_attrs))
896 )
897
898 o1.__dict__.update(other)
899 return o1
900
901 if TYPE_CHECKING:
902

Callers

nothing calls this directly

Calls 2

differenceMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected