Files
synapse/synapse/http
Quentin Gliech d93380a8df Type-check RestServlet.PATTERNS (#20258)
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.
2026-09-25 13:32:11 +02:00
..