Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TST: Bump mypy from 0.931 to 0.940 #21192

Merged
merged 4 commits into from Mar 14, 2022

Conversation

charris
Copy link
Member

@charris charris commented Mar 13, 2022

Backport of #21180.

Use the new mypy 0.940 release when running tests.

There are two notable changes that require an update of the test suite:

  • The repr from homogenous tuples was changed from tuple[Any] to tuple[Any, ...].
  • iter can now return actual Iterator[Any] subclasses, rather than just subtypes.

@charris charris added this to the 1.22.4 release milestone Mar 13, 2022
@charris
Copy link
Member Author

charris commented Mar 14, 2022

@BvB93 There is a small problem with the backport:

path = '/home/vsts/work/1/s/build/testenv/lib/python3.8/site-packages/numpy/typing/tests/data/reveal/fromnumeric.pyi'
expression = 'reveal_type(np.ravel(b))', reveal = 'ndarray[Any, dtype[bool_]]'
expected_reveal = '106: note: Revealed type is "numpy.ndarray[Any, Any]"'
lineno = 106

Co-authored-by: Bas van Beek <43369155+BvB93@users.noreply.github.com>
@charris charris merged commit 2f1410d into numpy:maintenance/1.22.x Mar 14, 2022
@charris charris deleted the backport-21180 branch April 10, 2022 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants