From e54c95a0d1930ceab0a64f364a0419969adc2cc8 Mon Sep 17 00:00:00 2001 From: "robin.keunen" Date: Mon, 31 Aug 2020 11:41:50 +0200 Subject: [PATCH] [FIX] emc_tax_shelter: exclude line from wrong black formatting --- easy_my_coop_website_taxshelter/controllers/main.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/easy_my_coop_website_taxshelter/controllers/main.py b/easy_my_coop_website_taxshelter/controllers/main.py index 4985f12..a084bb7 100644 --- a/easy_my_coop_website_taxshelter/controllers/main.py +++ b/easy_my_coop_website_taxshelter/controllers/main.py @@ -105,6 +105,11 @@ class PortalTaxShelter(CustomerPortal): "easy_my_coop_website_taxshelter.portal_my_tax_shelter", values ) + # Black adds a trailing comma after last argument of function definition + # this syntax is invalid for python < 3.6 + # Exclude for formatting while not fixed, follow status here: + # https://github.com/psf/black/issues/1657 + # fmt: off @http.route( ["/my/tax_shelter_certificates/"], type="http", @@ -118,8 +123,9 @@ class PortalTaxShelter(CustomerPortal): report_type=None, download=False, query_string=None, - **kw, + **kw ): + # fmt: on partner = request.env.user.partner_id try: taxshelter_certificate_sudo = self._document_check_access(