Alex Waygood <alex.wayg...@gmail.com> added the comment:
+1 to this suggestion. I had a use case for this the other day. It currently feels like something of a discrepancy between ABCs and `typing.Property`, which can be seen as analogous in some ways to "an ABC for the static type-checker". `typing.Property` allows you to specify that an object must have certain attributes, as well as certain methods, while for ABCs it is only the latter. ---------- nosy: +AlexWaygood _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue44905> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com