Skip to content

validate annotated assignments to attributes on self #2840

@carljm

Description

@carljm
class Test:
    def __init__(self):
        self.xxx: str = None  # no error, should be invalid-assignment

Reported by @npaolini2634 in #2839

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions