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

Commit edab83f

Browse files
author
David Robertson
committed
Pull in updated canonicaljson lib
so the protocol check just works
1 parent d695914 commit edab83f

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

poetry.lock

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

synapse/__init__.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,7 @@
6464
try:
6565
from canonicaljson import set_json_library
6666

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

synapse/storage/types.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
from types import TracebackType
1515
from typing import (
1616
Any,
17+
Callable,
1718
Iterator,
1819
List,
1920
Mapping,
@@ -22,7 +23,6 @@
2223
Tuple,
2324
Type,
2425
Union,
25-
Callable,
2626
)
2727

2828
from typing_extensions import Protocol

0 commit comments

Comments
 (0)