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

Method __mul__

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

Source from the content-addressed store, hash-verified

440 raise exceptions.ASTNodeRewrite(f"Can't add String and `{type(other)}`")
441
442 def __mul__(self, other):
443 if isinstance(other, int):
444 return String(value=self.value * other)
445 else:
446 raise exceptions.ASTNodeRewrite(
447 f"Can't multiply String and `{type(other)}`"
448 )
449
450 def __str__(self):
451 return str(self.value)

Callers

nothing calls this directly

Calls 1

StringClass · 0.85

Tested by

no test coverage detected