MCPcopy Create free account
hub / github.com/SourceCode-AI/aura / __add__

Method __add__

aura/analyzers/python/nodes.py:435–440  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

433 self._taint_class = Taints.SAFE
434
435 def __add__(self, other):
436 if isinstance(other, String):
437 new_str = self.value + other.value
438 return String(value=new_str)
439 else:
440 raise exceptions.ASTNodeRewrite(f"Can't add String and `{type(other)}`")
441
442 def __mul__(self, other):
443 if isinstance(other, int):

Callers

nothing calls this directly

Calls 1

StringClass · 0.85

Tested by

no test coverage detected