mirror of
https://github.com/element-hq/synapse.git
synced 2026-10-06 16:47:36 +00:00
Spawning from https://github.com/element-hq/synapse/pull/20143#discussion_r4080708454 `RestServlet.register` read `PATTERNS` via `getattr`, so it was typed as `Any` and mypy never checked subclasses' patterns against what `HttpServer.register_paths` expects. This declares the attribute so that classes extending `RestServlet` provide the right type for the `PATTERNS` attribute.