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

Method __add__

test/ext/test_hybrid.py:2011–2015  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

2009 self.amount = amount
2010
2011 def __add__(self, other):
2012 return Amount(
2013 self.amount + other.as_currency(self.currency).amount,
2014 self.currency,
2015 )
2016
2017 def __sub__(self, other):
2018 return Amount(

Callers

nothing calls this directly

Calls 2

AmountClass · 0.85
as_currencyMethod · 0.80

Tested by

no test coverage detected