Skip to content
This repository has been archived by the owner on Jun 10, 2020. It is now read-only.

MAINT: upgrade mypy to 0.770 (the latest) #45

Merged
merged 1 commit into from
Mar 29, 2020

Conversation

person142
Copy link
Member

The most significant benefit is changes to @overload around what
counts as overlapping signatures that could unlock some functionality;
see e.g.

The most significant benefit is changes to `@overload` around what
counts as overlapping signatures that could unlock some functionality;
see e.g.

- numpy#44 (comment)
- numpy#11 (comment)
@@ -52,7 +56,12 @@ def test_fail(path, py2_arg):
lines = fin.readlines()

errors = defaultdict(lambda: "")
for error_line in stdout.split("\n"):
error_lines = stdout.rstrip("\n").split("\n")
assert re.match(
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now mypy always outputs at least one summary line; check that this line is as expected (in case it goes away in a later version) and then drop it.

@person142
Copy link
Member Author

This is a straightforward change, so I will merge it in a day or two unless someone complains.

@charris
Copy link
Member

charris commented Mar 28, 2020

Might be worth adding a dependabot file at some point to track mypy releases.

@rgommers rgommers merged commit 7d44d93 into numpy:master Mar 29, 2020
@rgommers
Copy link
Member

LGTM, merged. Thanks @person142

@person142 person142 deleted the upgrade-mypy branch March 29, 2020 18:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants