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

Method __add__

lib/sqlalchemy/sql/elements.py:5560–5571  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

5558 return _anonymous_label(label)
5559
5560 def __add__(self, other):
5561 if "%" in other and not isinstance(other, _anonymous_label):
5562 other = str(other).replace("%", "%%")
5563 else:
5564 other = str(other)
5565
5566 return _anonymous_label(
5567 quoted_name(
5568 str.__add__(self, other),
5569 self.quote,
5570 )
5571 )
5572
5573 def __radd__(self, other):
5574 if "%" in other and not isinstance(other, _anonymous_label):

Callers 1

__radd__Method · 0.45

Calls 3

_anonymous_labelClass · 0.85
quoted_nameClass · 0.85
replaceMethod · 0.45

Tested by

no test coverage detected