From 740b1e57d9b57e4c4a03ed16a536bedc9e82abf1 Mon Sep 17 00:00:00 2001 From: Frederik Jaeckel Date: Fri, 30 Jun 2023 15:31:47 +0200 Subject: [PATCH] formatting --- edocument.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/edocument.py b/edocument.py index 077398b..c71c002 100644 --- a/edocument.py +++ b/edocument.py @@ -32,7 +32,7 @@ class Invoice(Invoice): return -1.0 * amount elif isinstance(amount, int): return -1 * amount - else : + else: return amount def prepaid_amount(self, invoice): @@ -122,10 +122,12 @@ class Invoice(Invoice): os.path.join(os.path.dirname(__file__), 'template'), auto_reload=True) if self.type_code in ['380', '389']: - return loader.load(os.path.join(version, 'XRechnung_invoice.xml')) + return loader.load(os.path.join( + version, 'XRechnung_invoice.xml')) elif self.type_code in ['381', '261']: - return loader.load(os.path.join(version, 'XRechnung_credit.xml')) - else : + return loader.load(os.path.join( + version, 'XRechnung_credit.xml')) + else: raise ValueError('invalid type-code "%s"' % self.type_code) else: return super(Invoice, self)._get_template(version)