Skip to content

Commit

Permalink
Updated docs for new file-level comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
msfterictraut committed May 21, 2019
1 parent 752e4fe commit f66856b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/comments.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,15 @@ Strict typing controls (where all supported type-checking switches generate erro
# pyright: strict
```

Individual configuration settings can also be overridden on a per-file basis and combined with “strict” typing. For example, if you want to enable all type checks except for “reportPrivateUsage”, you could add the following comment:

```
# pyright: strict, reportPrivateUsage=false
```

Diagnostic levels are also supported.

```
# pyright: reportPrivateUsage=warning, reportOptionalCall=error
```

0 comments on commit f66856b

Please sign in to comment.