Change some TypeVar base classes

This commit is contained in:
Dave Halter
2018-08-30 10:15:43 +02:00
parent f5f9fc1955
commit 2ec503d6eb
3 changed files with 10 additions and 6 deletions

View File

@@ -311,6 +311,9 @@ TYPE_VAR = typing.TypeVar('TYPE_VAR')
# TODO there should at least be some results.
#? []
TYPE_VAR.
#! ["TYPE_VAR = typing.TypeVar('TYPE_VAR')"]
TYPE_VAR
class WithTypeVar(typing.Generic[TYPE_VAR]):
def lala(self) -> TYPE_VAR: