Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -135,3 +135,4 @@ CMakeFiles/

# IDEs
.vscode
*~
2 changes: 1 addition & 1 deletion docs/pragmas.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pytype/directors/directors_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.*",
Expand Down