mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-14 17:23:53 +01:00
Ignore the jsonschema type. (#11817)
This commit is contained in:
parent
2d327d25bf
commit
15c2a6a106
2 changed files with 4 additions and 1 deletions
1
changelog.d/11817.misc
Normal file
1
changelog.d/11817.misc
Normal file
|
@ -0,0 +1 @@
|
||||||
|
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"
|
# This could return something newer than Draft 7, but that's the current "latest"
|
||||||
# validator.
|
# 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)
|
validator = jsonschema.validators.validator_for(POWER_LEVELS_SCHEMA)
|
||||||
|
|
||||||
# by default jsonschema does not consider a frozendict to be an object so
|
# by default jsonschema does not consider a frozendict to be an object so
|
||||||
|
|
Loading…
Reference in a new issue