[Python-ideas] Optional static typing -- the crossroads

Greg Ewing greg.ewing at canterbury.ac.nz
Sun Aug 17 11:33:13 CEST 2014


Stefan Behnel wrote:
> However, it does not support protocols, so it still needs
> something that allows us to say Iterable(int) in some way.

Just had a thought -- does mypy provide a way to express
a type that supports more than one protocol? E.g. can you
say that something must be both Iterable and Hashable?

-- 
Greg


More information about the Python-ideas mailing list