mirror of
https://github.com/davidhalter/jedi.git
synced 2026-09-03 00:36:56 +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_VARX = typing.TypeVar('TYPE_VARX')
|
||||||
TYPE_VAR_CONSTRAINTSX = typing.TypeVar('TYPE_VAR_CONSTRAINTSX', str, int)
|
TYPE_VAR_CONSTRAINTSX = typing.TypeVar('TYPE_VAR_CONSTRAINTSX', str, int)
|
||||||
# TODO there should at least be some results.
|
#? ['__class__']
|
||||||
#? []
|
TYPE_VARX.__clas
|
||||||
TYPE_VARX.
|
|
||||||
#! ["TYPE_VARX = typing.TypeVar('TYPE_VARX')"]
|
#! ["TYPE_VARX = typing.TypeVar('TYPE_VARX')"]
|
||||||
TYPE_VARX
|
TYPE_VARX
|
||||||
|
|
||||||
|
|||||||
@@ -139,7 +139,7 @@ def test_math(Script):
|
|||||||
def test_type_var(Script):
|
def test_type_var(Script):
|
||||||
def_, = Script('import typing; T = typing.TypeVar("T1")').infer()
|
def_, = Script('import typing; T = typing.TypeVar("T1")').infer()
|
||||||
assert def_.name == 'TypeVar'
|
assert def_.name == 'TypeVar'
|
||||||
assert def_.description == 'TypeVar = object()'
|
assert def_.description == 'class TypeVar'
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.parametrize(
|
@pytest.mark.parametrize(
|
||||||
|
|||||||
Reference in New Issue
Block a user