diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2022-01-25 06:07:10 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-25 12:07:10 +0100 |
commit | 15c2a6a1067f57707688cc59f2efa7ff0000dcd2 (patch) | |
tree | 69abf887bd89ab768b3701efee99e0de91b9fcf4 /synapse/events/validator.py | |
parent | Skip the initial amd64-only Docker build (#11810) (diff) | |
download | synapse-15c2a6a1067f57707688cc59f2efa7ff0000dcd2.tar.xz |
Ignore the jsonschema type. (#11817)
Diffstat (limited to '')
-rw-r--r-- | synapse/events/validator.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/events/validator.py b/synapse/events/validator.py index cf86934968..4245573017 100644 --- a/synapse/events/validator.py +++ b/synapse/events/validator.py @@ -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 |