Skip to content

make it an error to explicitly call __init__ on an existing object #1016

@carljm

Description

@carljm

This is unsafe because Liskov is not enforced on __init__ methods. It also makes the exclusion of __init__ from variance-inference unsafe.

Metadata

Metadata

Assignees

Labels

typing semanticstyping-module features, spec compliance, etc

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions