@typing.protocol decorator to create a class of type Protocol

7 posts were split to a new topic: Rationale behind dataclasses using a decorator