File size: 153 Bytes
5eb110b
 
 
 
 
1
2
3
4
5
6
T = TypeVar('T')

class AnotherBox(Protocol[T]):  # Error, this protocol is covariant in T,
    def content(self) -> T:     # not invariant.
        ...