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

Method __add__

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

Source from the content-addressed store, hash-verified

6002 return _anonymous_label(f"%({seed} {body.replace('%', '%%')})s")
6003
6004 def __add__(self, other: str) -> _anonymous_label:
6005 if "%" in other and not isinstance(other, _anonymous_label):
6006 other = str(other).replace("%", "%%")
6007 else:
6008 other = str(other)
6009
6010 return _anonymous_label(
6011 quoted_name(
6012 str.__add__(self, other),
6013 self.quote,
6014 )
6015 )
6016
6017 def __radd__(self, other: str) -> _anonymous_label:
6018 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