Skip to content

__match_args__ must catch non-existent attributes #13741

@sobolevn

Description

@sobolevn

Simple case:

class MyClass:
    a: int
    __match_args__ = ('a', 'b')

I think that it should generate an error: there's no b attribute.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions