Skip to content

Commit

Permalink
Update a test with a pytype pragma in Pyink.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 687275626
  • Loading branch information
AleksMat authored and copybara-github committed Oct 18, 2024
1 parent 3c20d83 commit 59a8a70
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion patches/pyink.patch
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion tests/test_black.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 59a8a70

Please sign in to comment.