Skip to content

Commit

Permalink
Update docs/guides/writing_stubs.rst
Browse files Browse the repository at this point in the history
Co-authored-by: Rebecca Chen <[email protected]>
  • Loading branch information
yangdanny97 and rchen152 authored Dec 10, 2024
1 parent 5c33d20 commit d61da81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/guides/writing_stubs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -804,7 +804,7 @@ Type Checker Error Suppression formats
--------------------------------------

* Use mypy error codes for mypy-specific `# type: ignore` annotations, e.g. `# type: ignore[override]` for Liskov Substitution Principle violations.
* Use pyright error codes for pyright-specific suppressions, e.g. `# pyright: ignore[reportGeneralTypeIssues]`. Pyright is configured to discard `# type: ignore` annotations.
* Use pyright error codes for pyright-specific suppressions, e.g. `# pyright: ignore[reportGeneralTypeIssues]`.
* If you need both on the same line, mypy's annotation needs to go first, e.g. `# type: ignore[override] # pyright: ignore[reportGeneralTypeIssues]`.


Expand Down

0 comments on commit d61da81

Please sign in to comment.