Skip to content

Fix several tests on Python 3.11 #13259

New issue

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

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

Already on GitHub? # to your account

Merged
merged 1 commit into from
Jul 28, 2022

Conversation

hauntsaninja
Copy link
Collaborator

@hauntsaninja hauntsaninja commented Jul 28, 2022

As a result of python/cpython#94948
we started to fail these tests on Python 3.11b5

Linking #12840

As a result of python/cpython#94948
we started to fail these tests on Python 3.11b5
@github-actions
Copy link
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@JelleZijlstra JelleZijlstra merged commit 9da4fb6 into python:master Jul 28, 2022
@hauntsaninja hauntsaninja deleted the walrus-operator branch July 28, 2022 05:27
@mr-c
Copy link
Contributor

mr-c commented Aug 15, 2022

Similar errors were found in a rebuild of MyPy 0.961 with Python 3.10.6

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1017312

Also with MyPy 0.971 according to my local testing; this PR fixed the tests for me with MyPy 0.971 + Debian's Python 3.10.6 and I'll be cherry-picking it into the mypy package for Debian

@hauntsaninja
Copy link
Collaborator Author

Yeah, the CPython PR got backported to 3.10. Thanks for fixing!

bmwiedemann pushed a commit to bmwiedemann/openSUSE that referenced this pull request Sep 28, 2022
https://build.opensuse.org/request/show/1006563
by user dgarcia + RBrownFactory
- Remove mypy-pr13259-walrus.patch because it's not needed anymore, it's in the
  release now -- gh#python/mypy#13259
- Update to 0.981
  - Drop support for Python3.6 and python2
  - Generate Error on Unbound TypeVar Return Type
  - Methods with Empty Bodies in Protocols Are Abstract
  - Implicit Optional Types Will Be Disabled by Default
  - Precise Types for **kwds Using TypedDict
  - Experimental Support for General Recursive Types
  - Generic NamedTuples and TypedDicts
  - Better Support for Callable Attributes
  - Per-Module Error Code Configuration
  - Experimental Support for Interactive Inspection of Expressions
  - Mypyc Improvements
    * Support async for as a statement and in comprehensions (Michael J.
      Sullivan, PR 13444)
    * Support async with (Michael J. Sullivan, PR 1
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants