summary refs log tree commit diff
path: root/synapse/events/validator.py
diff options
context:
space:
mode:
authorEric Eastwood <erice@element.io>2022-02-04 15:27:01 -0600
committerEric Eastwood <erice@element.io>2022-02-04 15:27:01 -0600
commit47590bb19e87d626c94f9529eda6cda6c2359bec (patch)
tree5577c9470f41b4b85346178af584610ea95b75c6 /synapse/events/validator.py
parentMerge branch 'develop' into madlittlemods/return-historical-events-in-order-f... (diff)
parentClarify that users' media are also preview images (#11862) (diff)
downloadsynapse-47590bb19e87d626c94f9529eda6cda6c2359bec.tar.xz
Merge branch 'develop' into madlittlemods/return-historical-events-in-order-from-backfill
Diffstat (limited to 'synapse/events/validator.py')
-rw-r--r--synapse/events/validator.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/events/validator.py b/synapse/events/validator.py
index cf86934968..360d24274a 100644
--- a/synapse/events/validator.py
+++ b/synapse/events/validator.py
@@ -12,7 +12,7 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 import collections.abc
-from typing import Iterable, Union
+from typing import Iterable, Type, Union
 
 import jsonschema
 
@@ -246,7 +246,7 @@ 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:
+def _create_power_level_validator() -> Type[jsonschema.Draft7Validator]:
     validator = jsonschema.validators.validator_for(POWER_LEVELS_SCHEMA)
 
     # by default jsonschema does not consider a frozendict to be an object so