Fix some tests

This commit is contained in:
Dave Halter
2019-12-27 11:59:40 +01:00
parent ff0e3ec8fb
commit 8611fcf8ea
2 changed files with 6 additions and 1 deletions

View File

@@ -322,6 +322,11 @@ class NewType(Value):
def py__call__(self, arguments):
return self._type_value_set.execute_annotation()
@property
def name(self):
from jedi.inference.compiled.value import CompiledValueName
return CompiledValueName(self, 'NewType')
class CastFunction(BaseTypingValue):
@repack_with_argument_clinic('type, object, /')

View File

@@ -20,7 +20,7 @@ tuple
class MyClass:
@pass_decorator
def x(foo,
#? 5 ["tuple"]
#? 5 []
tuple,
):
return 1