synapse-old/changelog.d
David Robertson 74e4419eb4
Fix another jsonschema typecheck error (#11830)
Similar to #11817.

In `_create_power_level_validator` we
- retrieve `validator`. This is a class implementing the
  `jsonschema.protocols.Validator` interface. In other words,
  `validator: Type[jsonschema.protocols.Validator]`.
- we then create an second validator class by modifying the original
  `validator`. We return that class, which is also of type
  `Type[jsonschema.protocols.Validator]`.

So the original annotation was incorrect: it claimed we were returning
an instance of jsonSchema.Draft7Validator, not the class (or a subclass)
itself. (Strictly speaking this is incorrect, because `POWER_LEVELS_SCHEMA`
isn't pinned to a particular version of JSON Schema. But there are other
complications with the type stubs if you try to fix this; I felt like
the change herein was a decent compromise that better expresses intent).

(I suspect/hope the typeshed project would welcome an effort to improve
the jsonschema stubs. Let's see if I get some spare time.)
2022-01-25 15:29:28 -05:00
..
.gitignore
11612.bugfix 1.51.0rc1 2022-01-21 10:47:03 +00:00
11621.feature Remove account data (including client config, push rules and ignored users) upon user deactivation. (#11621) 2022-01-24 13:37:00 +00:00
11639.feature Add admin API to reset connection timeouts for remote server (#11639) 2022-01-25 12:06:29 +00:00
11658.feature Add admin API to get a list of federated rooms (#11658) 2022-01-25 16:11:40 +00:00
11683.removal Drop support for and remove references to EOL Python 3.6 (#11683) 2022-01-21 14:23:26 -08:00
11767.bugfix Support rendering previews with data: URLs in them (#11767) 2022-01-24 08:58:18 -05:00
11784.bugfix Apply a timeout to reading the body when fetching a file. (#11784) 2022-01-24 14:38:37 +00:00
11788.feature Make the `get_global_account_data_by_type_for_user` cache be a tree-cache whose key is prefixed with the user ID (#11788) 2022-01-21 08:38:36 +00:00
11789.feature Make `get_account_data_for_room_and_type` a tree cache (#11789) 2022-01-21 08:01:37 +00:00
11792.misc Add `state_key` and `rejection_reason` to `events` (#11792) 2022-01-21 12:21:28 +00:00
11793.misc Add `FrozenEvent.get_state_key` and use it in a couple of places (#11793) 2022-01-21 09:10:01 +00:00
11794.misc Stop reading from `event_reference_hashes` (#11794) 2022-01-21 09:18:10 +00:00
11795.misc Drop unused table `public_room_list_stream`. (#11795) 2022-01-21 09:19:56 +00:00
11799.misc Db txn set isolation level (#11799) 2022-01-25 15:14:46 +01:00
11810.misc Skip the initial amd64-only Docker build (#11810) 2022-01-24 18:31:23 +00:00
11811.misc CI: run Complement on the VM, not inside Docker (#11811) 2022-01-25 15:05:22 +00:00
11813.misc Log modules at startup (#11813) 2022-01-25 15:35:35 +01:00
11816.misc Check that `gc` method is available before using in `synapse/app/_base` (#11816) 2022-01-25 10:35:18 -08:00
11817.misc Fix another jsonschema typecheck error (#11830) 2022-01-25 15:29:28 -05:00
11821.doc Docs: add missing PR submission process how-tos (#11821) 2022-01-25 14:09:56 +00:00
11823.misc Minor updates, and docs, for schema delta files (#11823) 2022-01-25 14:11:13 +00:00
11830.misc Fix another jsonschema typecheck error (#11830) 2022-01-25 15:29:28 -05:00