[issue39134] can't construct dataclass as ABC (or runtime check as data protocol)
Alexander Hirner
report at bugs.python.org
Fri Dec 27 08:31:14 EST 2019
Alexander Hirner <a.hirner at gmail.com> added the comment:
Pardon my sloppiness.
1. That should have been PEP 544. The last point referred to the notion of data protocols [0].
2. I think solving this issue for dataclasses would ensure better composition with modern libraries and other idioms like Protocol and ABC.
[0] https://www.python.org/dev/peps/pep-0544/#runtime-checkable-decorator-and-narrowing-types-by-isinstance
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39134>
_______________________________________
More information about the Python-bugs-list
mailing list