Skip to content

[3.10] gh-94996: Disallow parsing pos only params with feature_version < (3, 8)#95935

Merged
miss-islington merged 2 commits intopython:3.10from
hauntsaninja:backport-b5e3ea2-3.10
Aug 12, 2022
Merged

[3.10] gh-94996: Disallow parsing pos only params with feature_version < (3, 8)#95935
miss-islington merged 2 commits intopython:3.10from
hauntsaninja:backport-b5e3ea2-3.10

Conversation

@hauntsaninja
Copy link
Copy Markdown
Contributor

@hauntsaninja hauntsaninja commented Aug 12, 2022

(cherry picked from commit b5e3ea2)

Co-authored-by: Shantanu [email protected]

Automerge-Triggered-By: GH:lysnikolaou

@miss-islington
Copy link
Copy Markdown
Contributor

Status check is done, and it's a success ✅ .

@miss-islington miss-islington merged commit a92c2d6 into python:3.10 Aug 12, 2022
@hauntsaninja hauntsaninja deleted the backport-b5e3ea2-3.10 branch August 12, 2022 19:09
hauntsaninja pushed a commit to python/mypy that referenced this pull request Sep 14, 2022
The CI has started to sporadically fail depending on whether 3.10.6 is
picked up by GitHub Actions (okay) or 3.10.7 (not okay). For example:

- https://github.com/python/mypy/actions/runs/3046671132/jobs/4909772702
- https://github.com/python/mypy/actions/runs/3046723692/jobs/4909887963

On Python 3.10.7 (but not on Python 3.10.6), mypy correctly rejects
using PEP 570 syntax unless `--python-version` is set to 3.8 or higher
(this is due to python/cpython#95935). However,
this makes several unit tests fail.

This PR updates those unit tests so that the CI passes on both 3.10.6
and 3.10.7
cdce8p pushed a commit to cdce8p/mypy that referenced this pull request Sep 14, 2022
…#13660)

The CI has started to sporadically fail depending on whether 3.10.6 is
picked up by GitHub Actions (okay) or 3.10.7 (not okay). For example:

- https://github.com/python/mypy/actions/runs/3046671132/jobs/4909772702
- https://github.com/python/mypy/actions/runs/3046723692/jobs/4909887963

On Python 3.10.7 (but not on Python 3.10.6), mypy correctly rejects
using PEP 570 syntax unless `--python-version` is set to 3.8 or higher
(this is due to python/cpython#95935). However,
this makes several unit tests fail.

This PR updates those unit tests so that the CI passes on both 3.10.6
and 3.10.7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants