mirror of
https://github.com/davidhalter/jedi.git
synced 2026-08-12 19:24:39 +08:00
Some small typing improvements for tests
This commit is contained in:
+1
-1
@@ -136,7 +136,7 @@ def goto_or_help_or_infer(request, Script):
|
|||||||
def do(code, *args, **kwargs):
|
def do(code, *args, **kwargs):
|
||||||
return getattr(Script(code), request.param)(*args, **kwargs)
|
return getattr(Script(code), request.param)(*args, **kwargs)
|
||||||
|
|
||||||
do.type = request.param
|
do.type = request.param # type: ignore[attr-defined]
|
||||||
return do
|
return do
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -810,11 +810,11 @@ def test_try_to_use_return_annotation_for_property(class_is_findable):
|
|||||||
raise BaseException
|
raise BaseException
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def with_annotation_garbage1(self) -> 'asldjflksjdfljdslkjfsl': # noqa
|
def with_annotation_garbage1(self) -> 'asldjflksjdfljdslkjfsl': # type: ignore[name-defined] # noqa
|
||||||
return Hello()
|
return Hello()
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def with_annotation_garbage2(self) -> 'sdf$@@$5*+8': # noqa
|
def with_annotation_garbage2(self) -> 'sdf & 8': # type: ignore[valid-type] # noqa
|
||||||
return Hello()
|
return Hello()
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|||||||
Reference in New Issue
Block a user