Fix some test results

This commit is contained in:
Dave Halter
2020-03-21 01:52:56 +01:00
parent 8000d425ec
commit 4c964ae655
2 changed files with 3 additions and 4 deletions

View File

@@ -341,9 +341,8 @@ typing.Optional[0]
TYPE_VARX = typing.TypeVar('TYPE_VARX')
TYPE_VAR_CONSTRAINTSX = typing.TypeVar('TYPE_VAR_CONSTRAINTSX', str, int)
# TODO there should at least be some results.
#? []
TYPE_VARX.
#? ['__class__']
TYPE_VARX.__clas
#! ["TYPE_VARX = typing.TypeVar('TYPE_VARX')"]
TYPE_VARX

View File

@@ -139,7 +139,7 @@ def test_math(Script):
def test_type_var(Script):
def_, = Script('import typing; T = typing.TypeVar("T1")').infer()
assert def_.name == 'TypeVar'
assert def_.description == 'TypeVar = object()'
assert def_.description == 'class TypeVar'
@pytest.mark.parametrize(