mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-09 23:34:45 +08:00
Fix some tests
This commit is contained in:
@@ -322,6 +322,11 @@ class NewType(Value):
|
|||||||
def py__call__(self, arguments):
|
def py__call__(self, arguments):
|
||||||
return self._type_value_set.execute_annotation()
|
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):
|
class CastFunction(BaseTypingValue):
|
||||||
@repack_with_argument_clinic('type, object, /')
|
@repack_with_argument_clinic('type, object, /')
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ tuple
|
|||||||
class MyClass:
|
class MyClass:
|
||||||
@pass_decorator
|
@pass_decorator
|
||||||
def x(foo,
|
def x(foo,
|
||||||
#? 5 ["tuple"]
|
#? 5 []
|
||||||
tuple,
|
tuple,
|
||||||
):
|
):
|
||||||
return 1
|
return 1
|
||||||
|
|||||||
Reference in New Issue
Block a user