MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / __radd__

Method __radd__

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

Source from the content-addressed store, hash-verified

6015 )
6016
6017 def __radd__(self, other: str) -> _anonymous_label:
6018 if "%" in other and not isinstance(other, _anonymous_label):
6019 other = str(other).replace("%", "%%")
6020 else:
6021 other = str(other)
6022
6023 return _anonymous_label(
6024 quoted_name(
6025 str.__add__(other, self),
6026 self.quote,
6027 )
6028 )
6029
6030 def apply_map(self, map_: Mapping[str, Any]) -> str:
6031 if self.quote is not None:

Callers

nothing calls this directly

Calls 4

_anonymous_labelClass · 0.85
quoted_nameClass · 0.85
replaceMethod · 0.45
__add__Method · 0.45

Tested by

no test coverage detected