Fix type var completions so that there's at least no error

This commit is contained in:
Dave Halter
2018-08-30 01:23:28 +02:00
parent 80ab4d8ff5
commit ac6b7ff14e
2 changed files with 7 additions and 2 deletions

View File

@@ -308,7 +308,9 @@ def union4(x: U[int, str]):
TYPE_VAR = typing.TypeVar('TYPE_VAR')
# TODO there should at least be some results.
#? []
TYPE_VAR.
class WithTypeVar(typing.Generic[TYPE_VAR]):
def lala(self) -> TYPE_VAR: