From 26de41a36ac6191f8a93e7ba40fea6ac3628b1e6 Mon Sep 17 00:00:00 2001 From: Paride Legovini Date: Mon, 10 Jan 2022 18:28:14 +0100 Subject: pylint: silence errors on compat code for old jsonschema (#1172) --- cloudinit/config/schema.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cloudinit/config/schema.py b/cloudinit/config/schema.py index 3a77ca00..f54cf18f 100644 --- a/cloudinit/config/schema.py +++ b/cloudinit/config/schema.py @@ -118,12 +118,12 @@ def get_jsonschema_validator(): type_checker=type_checker, ) else: # jsonschema 2.6 workaround - types = Draft4Validator.DEFAULT_TYPES + types = Draft4Validator.DEFAULT_TYPES # pylint: disable=E1101 # Allow bytes as well as string (and disable a spurious unsupported # assignment-operation pylint warning which appears because this # code path isn't written against the latest jsonschema). types["string"] = (str, bytes) # pylint: disable=E1137 - cloudinitValidator = create( + cloudinitValidator = create( # pylint: disable=E1123 meta_schema=strict_metaschema, validators=Draft4Validator.VALIDATORS, version="draft4", -- cgit v1.2.3