Ben
Ben
> This keeps coming up, in particular when people have code that they want to support both sets and sequences -- there is no good common type, and many people...
It seems that protocols are not available in `typing` under 3.6. The following code works and has no warnings in mypy. ``` from typing_extensions import Protocol class SizedIterable(Protocol): def __len__(self):...
I wouldn't know right now how to fix your example but you could take a look into the `apps/` directory. There you can find some useful examples that are compatible...