Skip to content

Commit

Permalink
pylint: silence errors on compat code for old jsonschema (#1172)
Browse files Browse the repository at this point in the history
  • Loading branch information
paride authored Jan 10, 2022
1 parent 19948db commit 26de41a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cloudinit/config/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 26de41a

Please sign in to comment.