Skip to content

TST: Bump mypy from 0.931 to 0.940#21192

Merged
charris merged 4 commits intonumpy:maintenance/1.22.xfrom
charris:backport-21180
Mar 14, 2022
Merged

TST: Bump mypy from 0.931 to 0.940#21192
charris merged 4 commits intonumpy:maintenance/1.22.xfrom
charris:backport-21180

Conversation

@charris
Copy link
Copy Markdown
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
Copy Markdown
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants