-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Update locked versions of mypy and mypy-zope #13521
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm!
@@ -535,8 +535,8 @@ attrs = "*" | |||
importlib-metadata = {version = ">=1.4", markers = "python_version < \"3.8\""} | |||
|
|||
[package.extras] | |||
test = ["aiounittest", "twisted", "tox"] | |||
dev = ["twine (==4.0.1)", "build (==0.8.0)", "isort (==5.9.3)", "flake8 (==4.0.1)", "black (==22.3.0)", "mypy (==0.910)", "aiounittest", "twisted", "tox"] | |||
dev = ["tox", "twisted", "aiounittest", "mypy (==0.910)", "black (==22.3.0)", "flake8 (==4.0.1)", "isort (==5.9.3)", "build (==0.8.0)", "twine (==4.0.1)"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not specific to this PR, but what's with the version of mypy here being stuck at 0.910?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a copy of the requirements declared by matrix-common. Its dev
extra pins a specific version of mypy here: https://github.com/matrix-org/matrix-python-common/blob/b1801eed82b1a9c79cfbc8f85a8c79d11855f48d/setup.cfg#L32
Poetry ignores this constraint though, because Synapse depends on matrix-common
, not matrix-common[dev]
.
This seemed to cause trouble on other branches(!?!). I think something has gong wrong with caching that either causes the errors to appear (as false positives) on other branches, or to not appear (false negatives) on this branch. Going to revert this and re-open the issue. |
Presumably python/typeshed#8064 makes this ok Cherry-picked from #13521
python/mypy#12668 Cherry-picked from #13521
Presumably python/typeshed#8064 makes this ok Cherry-picked from #13521
python/mypy#12668 Cherry-picked from #13521
* Update mypy and mypy-zope * Unignore assigning to LogRecord attributes Presumably python/typeshed#8064 makes this ok Cherry-picked from #13521 * Remove unused ignores due to mypy ParamSpec fixes python/mypy#12668 Cherry-picked from #13521 * Remove additional unused ignores * Fix new mypy complaints related to `assertGreater` Presumably due to python/typeshed#8077 * Changelog * Reword changelog Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com> Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com>
Closes #13500.