Skip to content

None should be a subtype of an empty protocol #3906

Description

@ilevkivskyi

Currently this gives an incompatible type error with --strict-optional, although it works with plain object:

classEmpty(Protocol):
passe: Emptye=None# Erroro: objecto=None# This is OK

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions