Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Pull in updated canonicaljson lib
Browse files Browse the repository at this point in the history
so the protocol check just works
  • Loading branch information
David Robertson committed Feb 15, 2023
1 parent e9329dc commit 029cfaf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 3 additions & 3 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions synapse/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,7 @@
try:
from canonicaljson import set_json_library

# type-ignore: I think there has been a regression in mypy 1.0.0 in how it checks
# modules against Protocols.
set_json_library(json) # type: ignore[arg-type]
set_json_library(json)
except ImportError:
pass

Expand Down

0 comments on commit 029cfaf

Please sign in to comment.