From e908b8055596329f0b4ba1bc0dc1c793b437299f Mon Sep 17 00:00:00 2001 From: Julian Berman Date: Wed, 4 Aug 2021 10:29:44 +0100 Subject: Fix missing trailing commas. Add flake8-commas to ensure this stays the case. --- jsonschema/_format.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'jsonschema/_format.py') diff --git a/jsonschema/_format.py b/jsonschema/_format.py index 19f4283..9c351f9 100644 --- a/jsonschema/_format.py +++ b/jsonschema/_format.py @@ -168,15 +168,15 @@ def _checks_drafts( if draft7: func = _draft_checkers["draft7"].checks(draft7, raises)(func) if draft202012: - func = _draft_checkers["draft202012"].checks( - draft202012, raises - )(func) + func = _draft_checkers["draft202012"].checks(draft202012, raises)( + func, + ) # Oy. This is bad global state, but relied upon for now, until # deprecation. See https://github.com/Julian/jsonschema/issues/519 # and test_format_checkers_come_with_defaults FormatChecker.cls_checks( - draft202012 or draft7 or draft6 or draft4 or draft3, raises + draft202012 or draft7 or draft6 or draft4 or draft3, raises, )(func) return func return wrap -- cgit v1.2.1