Skip to content
Snippets Groups Projects
Unverified Commit 15c2a6a1 authored by Patrick Cloke's avatar Patrick Cloke Committed by GitHub
Browse files

Ignore the jsonschema type. (#11817)

parent 2d327d25
No related branches found
No related tags found
No related merge requests found
Compatibility with updated type hints for jsonschema 4.4.0.
......@@ -246,7 +246,9 @@ POWER_LEVELS_SCHEMA = {
# This could return something newer than Draft 7, but that's the current "latest"
# validator.
def _create_power_level_validator() -> jsonschema.Draft7Validator:
#
# See https://github.com/python/typeshed/issues/7028 for the ignored return type.
def _create_power_level_validator() -> jsonschema.Draft7Validator: # type: ignore[valid-type]
validator = jsonschema.validators.validator_for(POWER_LEVELS_SCHEMA)
# by default jsonschema does not consider a frozendict to be an object so
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment