-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
I want to derive a protocol from DataclassLike
:
@runtime_checkable
class TDataclassInstance(DataclassLike, Protocol):
static_fields: ClassVar[list[str]]
dynamic_fields: ClassVar[list[str]]
This is for the return value of a dataclass_transform
-marked constructor.
Another option would be to make final protocols support being inherited by other protocols, i.e., final
only blocks non-protocol class inheritance.
Metadata
Metadata
Assignees
Labels
No labels