matrix-org / synapse

Synapse: Matrix homeserver written in Python/Twisted.
https://matrix-org.github.io/synapse
Apache License 2.0
11.79k stars 2.13k forks source link

CI run against latest deps is failing #13896

Closed github-actions[bot] closed 1 year ago

github-actions[bot] commented 1 year ago

See https://github.com/matrix-org/synapse/actions/runs/3125758020

DMRobertson commented 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.