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.*",