In mypy, how would you specify that a type Generic over T has methods that are only valid if T meets certain conditions?
Generic
T
For ex