Author gvanrossum
Recipients Siyuan Ren, gvanrossum, levkivskyi
Date 2018-03-20.16:39:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Such a mechanism exists, and is called Protocols. See PEP 544 ( While the PEP is still in draft, it is supported by mypy. You need to import the 'Protocol' base class from typing_extensions (which is a PyPI module, so use `pip install typing_extensions`).
Date User Action Args
2018-03-20 16:39:04gvanrossumsetrecipients: + gvanrossum, levkivskyi, Siyuan Ren
2018-03-20 16:39:04gvanrossumsetmessageid: <>
2018-03-20 16:39:03gvanrossumlinkissue33107 messages
2018-03-20 16:39:03gvanrossumcreate