Discussions on Python.org
@typing.protocol decorator to create a class of type Protocol
Ideas
brettcannon
(Brett Cannon) Split this topic
October 14, 2022, 6:26pm
17
7 posts were split to a new topic:
Rationale behind dataclasses using a decorator
show post in topic
Related Topics
Topic
Replies
Views
Activity
Is typing.Protocol with composition rather than inheritance even possible?
Python Help
5
1036
January 22, 2022
Rationale behind dataclasses using a decorator
Ideas
7
765
May 9, 2023
What are the practical uses of typing.Protocol?
Python Help
1
808
March 6, 2021
PEP 698: A typing.override decorator
PEPs
typing
10
4326
January 30, 2023
Feature proposal: a new classmethod decorator that only allows calling from the class type
Ideas
typing
14
1400
September 8, 2023