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