From ca031c1914f622ee673df9b6fb8c819fca0a10bc Mon Sep 17 00:00:00 2001 From: John E Date: Sat, 25 Oct 2025 10:44:58 -0400 Subject: [PATCH] propose typo fix and emacs backup files be ignored Signed-off-by: John E --- .gitignore | 1 + docs/pragmas.md | 2 +- pytype/directors/directors_test.py | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 35d95562d..c2eb60fd4 100644 --- a/.gitignore +++ b/.gitignore @@ -135,3 +135,4 @@ CMakeFiles/ # IDEs .vscode +*~ diff --git a/docs/pragmas.md b/docs/pragmas.md index 135259ec2..931558966 100644 --- a/docs/pragmas.md +++ b/docs/pragmas.md @@ -15,7 +15,7 @@ def f(x: int) -> str: # pytype: pragma=cache-return will associate a `cache-return` pragma with the function definition. -Pragmas are currently not considerd a stable end-user feature; they are intended +Pragmas are currently not considered a stable end-user feature; they are intended to be used as a last resort in specific cases, for complex performance or analysis issues that cannot be solved by more general heuristics. Reach out to the pytype team if you have any questions or advanced use cases you think a diff --git a/pytype/directors/directors_test.py b/pytype/directors/directors_test.py index b16e99418..eebf1497d 100644 --- a/pytype/directors/directors_test.py +++ b/pytype/directors/directors_test.py @@ -317,7 +317,7 @@ def check_warning(message_regex, text): self.assertRegex(str(error), message_regex) check_warning( - "Unknown pytype directive.*disalbe.*", "# pytype: disalbe=test-error" + "Unknown pytype directive.*disable.*", "# pytype: disable=test-error" ) check_warning( "Invalid error name.*bad-error-name.*",