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

Update locked versions of mypy and mypy-zope #13521

Merged
merged 4 commits into from
Aug 15, 2022
Merged

Conversation

DMRobertson
Copy link
Contributor

@DMRobertson DMRobertson commented Aug 12, 2022

Closes #13500.

@DMRobertson DMRobertson changed the title Update locked versions of mypy ad mypy-zope Update locked versions of mypy and mypy-zope Aug 12, 2022
@DMRobertson DMRobertson marked this pull request as ready for review August 12, 2022 16:42
@DMRobertson DMRobertson requested a review from a team as a code owner August 12, 2022 16:42
Copy link
Contributor

@squahtx squahtx left a 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)"]
Copy link
Contributor

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?

Copy link
Contributor Author

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].

@DMRobertson
Copy link
Contributor Author

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.

DMRobertson pushed a commit that referenced this pull request Aug 15, 2022
This reverts commit f383b9b. Other PRs
were seeing mypy failures that looked to be related to mypy-zope.
Confusingly, we didn't see this on #13521.

Revert this for now and investigate later.
DMRobertson pushed a commit that referenced this pull request Sep 28, 2022
Presumably python/typeshed#8064 makes this ok

Cherry-picked from #13521
DMRobertson pushed a commit that referenced this pull request Sep 28, 2022
DMRobertson pushed a commit that referenced this pull request Sep 30, 2022
Presumably python/typeshed#8064 makes this ok

Cherry-picked from #13521
DMRobertson pushed a commit that referenced this pull request Sep 30, 2022
DMRobertson pushed a commit that referenced this pull request Sep 30, 2022
* 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>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrade mypy to 0.971 or newer
2 participants