From 59a8a70770f0134431347c94850de1b935f70ee1 Mon Sep 17 00:00:00 2001 From: Matej Aleksandrov Date: Fri, 18 Oct 2024 06:03:44 -0700 Subject: [PATCH] Update a test with a pytype pragma in Pyink. PiperOrigin-RevId: 687275626 --- patches/pyink.patch | 2 +- tests/test_black.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/patches/pyink.patch b/patches/pyink.patch index ed0e9ee5066..52cd592834a 100644 --- a/patches/pyink.patch +++ b/patches/pyink.patch @@ -1355,7 +1355,7 @@ + elif field.name == "pyink_annotation_pragmas": + values = [ + ("type: ignore",), -+ ("noqa", "pylint:", "pytype: ignore", "@param"), ++ ("noqa", "pylint:", "pytype: disable", "@param"), + ] elif field.type is bool: values = [True, False] diff --git a/tests/test_black.py b/tests/test_black.py index 3695ec4ab83..4a8452065e9 100644 --- a/tests/test_black.py +++ b/tests/test_black.py @@ -2376,7 +2376,7 @@ def test_cache_key(self) -> None: elif field.name == "pyink_annotation_pragmas": values = [ ("type: ignore",), - ("noqa", "pylint:", "pytype: ignore", "@param"), + ("noqa", "pylint:", "pytype: disable", "@param"), ] elif field.type is bool: values = [True, False]