Skip to content

1.14.0 - regression bug: confusion of **kwargs with other parameters #1078

@paulocheque

Description

@paulocheque

Python 3.13
MacOS

Works in MyPy 1.13.0
Fails in MyPy 1.14.0

class X:
    def __init__(self, msg: str, **variables: int) -> None:
         pass

X('test1', b=2)

# when executing with the generated .so library of MyPyC:
TypeError: argument for __init__() given by name ('msg') and position (1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions