This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Incompatible types in Python grammar
Type: Stage: resolved
Components: Versions: Python 3.9
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: lys.nikolaou, miss-islington, tobias.kohn
Priority: normal Keywords: patch

Created on 2021-01-07 21:09 by tobias.kohn, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 24156 merged lys.nikolaou, 2021-01-07 22:10
Messages (4)
msg384603 - (view) Author: Tobias Kohn (tobias.kohn) * Date: 2021-01-07 21:09
There seems to be a small type error in the Python grammar in the rule `invalid_parameters`:
```
invalid_parameters:
    | param_no_default* (slash_with_default | param_with_default+) param_no_default
```
While the `slash_with_default` returns a single element, the `param_with_default` returns a list/sequence.
msg384614 - (view) Author: miss-islington (miss-islington) Date: 2021-01-07 22:31
New changeset 07dcd86ceed0bd88d1e96dcf53b1de2fea024385 by Lysandros Nikolaou in branch 'master':
bpo-42860: Remove type error from grammar (GH-24156)
https://github.com/python/cpython/commit/07dcd86ceed0bd88d1e96dcf53b1de2fea024385
msg384615 - (view) Author: Lysandros Nikolaou (lys.nikolaou) * (Python committer) Date: 2021-01-07 22:33
This is now fixed, Tobias!
msg384642 - (view) Author: Tobias Kohn (tobias.kohn) * Date: 2021-01-08 08:14
Great, thanks a lot!
History
Date User Action Args
2022-04-11 14:59:40adminsetgithub: 87026
2021-01-08 08:14:04tobias.kohnsetmessages: + msg384642
2021-01-07 22:33:05lys.nikolaousetstatus: open -> closed
resolution: fixed
messages: + msg384615

stage: patch review -> resolved
2021-01-07 22:31:56miss-islingtonsetnosy: + miss-islington
messages: + msg384614
2021-01-07 22:10:07lys.nikolaousetkeywords: + patch
stage: patch review
pull_requests: + pull_request22984
2021-01-07 22:06:25lys.nikolaousetnosy: + lys.nikolaou
2021-01-07 21:09:27tobias.kohncreate