mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-20 18:57:05 +08:00
Fix some tests
This commit is contained in:
1 parent
ff0e3ec8fb
commit
8611fcf8ea
2 files changed
+6
-1
No files matched your search
@@ -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