Closed github-actions[bot] closed 1 year ago
Complement flake, plus mypy:
synapse/http/server.py:751: error: Incompatible types in assignment (expression has type "Callable[[Any], bytes]", variable has type "Callable[[object], bytes]") [assignment]
Found 1 error in 1 file (checked 734 source files)
This is due to https://github.com/matrix-org/python-canonicaljson/pull/52
Fix by either marking encoder: Callable[[Any], bytes]
; by making _encode_json_bytes
take object
; or with a #type: ignore
.
See https://github.com/matrix-org/synapse/actions/runs/3125758020