mirror of
https://github.com/davidhalter/jedi.git
synced 2026-01-31 09:45:25 +08:00
Fix some test results
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user