diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2021-03-03 07:19:19 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-03 07:19:19 -0500 |
commit | 0c330423bcb26b2227f7d58749bfa176830c10ec (patch) | |
tree | db1ed7576ba4259b57cae31a3a6e4f52b5254bfa | |
parent | Make deleting stale pushers a background update (#9536) (diff) | |
download | synapse-0c330423bcb26b2227f7d58749bfa176830c10ec.tar.xz |
Bump the mypy and mypy-zope versions. (#9529)
-rw-r--r-- | changelog.d/9529.misc | 1 | ||||
-rwxr-xr-x | setup.py | 2 | ||||
-rw-r--r-- | synapse/replication/tcp/streams/_base.py | 2 | ||||
-rw-r--r-- | synapse/storage/roommember.py | 2 |
4 files changed, 4 insertions, 3 deletions
diff --git a/changelog.d/9529.misc b/changelog.d/9529.misc new file mode 100644 index 0000000000..b9021a26b4 --- /dev/null +++ b/changelog.d/9529.misc @@ -0,0 +1 @@ +Bump the versions of mypy and mypy-zope used for static type checking. diff --git a/setup.py b/setup.py index 08ba4eb764..bbd9e7862a 100755 --- a/setup.py +++ b/setup.py @@ -102,7 +102,7 @@ CONDITIONAL_REQUIREMENTS["lint"] = [ "flake8", ] -CONDITIONAL_REQUIREMENTS["mypy"] = ["mypy==0.790", "mypy-zope==0.2.8"] +CONDITIONAL_REQUIREMENTS["mypy"] = ["mypy==0.812", "mypy-zope==0.2.11"] # Dependencies which are exclusively required by unit test code. This is # NOT a list of all modules that are necessary to run the unit tests. diff --git a/synapse/replication/tcp/streams/_base.py b/synapse/replication/tcp/streams/_base.py index 38809b5b7c..f45e7a8c89 100644 --- a/synapse/replication/tcp/streams/_base.py +++ b/synapse/replication/tcp/streams/_base.py @@ -502,7 +502,7 @@ class AccountDataStream(Stream): """Global or per room account data was changed""" AccountDataStreamRow = namedtuple( - "AccountDataStream", + "AccountDataStreamRow", ("user_id", "room_id", "data_type"), # str # Optional[str] # str ) diff --git a/synapse/storage/roommember.py b/synapse/storage/roommember.py index f152f63321..d2ff4da6b9 100644 --- a/synapse/storage/roommember.py +++ b/synapse/storage/roommember.py @@ -25,7 +25,7 @@ RoomsForUser = namedtuple( ) GetRoomsForUserWithStreamOrdering = namedtuple( - "_GetRoomsForUserWithStreamOrdering", ("room_id", "event_pos") + "GetRoomsForUserWithStreamOrdering", ("room_id", "event_pos") ) |