From ea099835662cef3aefc35fae991655e2e38661b0 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Mon, 16 Feb 2026 21:20:27 +0100 Subject: [PATCH] Some small typing improvements for tests --- conftest.py | 2 +- test/test_api/test_interpreter.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/conftest.py b/conftest.py index 146e353d..86ce7b5e 100644 --- a/conftest.py +++ b/conftest.py @@ -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 diff --git a/test/test_api/test_interpreter.py b/test/test_api/test_interpreter.py index e5aa30de..933ad740 100644 --- a/test/test_api/test_interpreter.py +++ b/test/test_api/test_interpreter.py @@ -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