Skip to content

Prohibit issubclass() for runtime protocols with non-method members #3939

Closed
@ilevkivskyi

Description

@ilevkivskyi

As discussed in python/typing#464, issubclass() with runtime protocols that declare non-method attributes is too ambiguous. Therefore it is proposed to prohibit such calls. Note that isinstance() is still fine.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions