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

Incompatible types in Python grammar #87026

Closed
Tobias-Kohn mannequin opened this issue Jan 7, 2021 · 4 comments
Closed

Incompatible types in Python grammar #87026

Tobias-Kohn mannequin opened this issue Jan 7, 2021 · 4 comments
Labels
3.9 only security fixes

Comments

@Tobias-Kohn
Copy link
Mannequin

Tobias-Kohn mannequin commented Jan 7, 2021

BPO 42860
Nosy @lysnikolaou, @miss-islington, @Tobias-Kohn
PRs
  • bpo-42860: Remove type error from grammar #24156
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2021-01-07.22:33:05.989>
    created_at = <Date 2021-01-07.21:09:27.394>
    labels = ['3.9']
    title = 'Incompatible types in Python grammar'
    updated_at = <Date 2021-01-08.08:14:04.689>
    user = 'https://github.com/Tobias-Kohn'

    bugs.python.org fields:

    activity = <Date 2021-01-08.08:14:04.689>
    actor = 'tobias.kohn'
    assignee = 'none'
    closed = True
    closed_date = <Date 2021-01-07.22:33:05.989>
    closer = 'lys.nikolaou'
    components = []
    creation = <Date 2021-01-07.21:09:27.394>
    creator = 'tobias.kohn'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 42860
    keywords = ['patch']
    message_count = 4.0
    messages = ['384603', '384614', '384615', '384642']
    nosy_count = 3.0
    nosy_names = ['lys.nikolaou', 'miss-islington', 'tobias.kohn']
    pr_nums = ['24156']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue42860'
    versions = ['Python 3.9']

    @Tobias-Kohn
    Copy link
    Mannequin Author

    Tobias-Kohn mannequin commented Jan 7, 2021

    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.

    @Tobias-Kohn Tobias-Kohn mannequin added the 3.9 only security fixes label Jan 7, 2021
    @miss-islington
    Copy link
    Contributor

    New changeset 07dcd86 by Lysandros Nikolaou in branch 'master':
    bpo-42860: Remove type error from grammar (GH-24156)
    07dcd86

    @lysnikolaou
    Copy link
    Contributor

    This is now fixed, Tobias!

    @Tobias-Kohn
    Copy link
    Mannequin Author

    Tobias-Kohn mannequin commented Jan 8, 2021

    Great, thanks a lot!

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.9 only security fixes
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants