Commit 772cd0c
authored
Add --strict-bytes to --strict (#19049)
This is a check that ensures static correctness, so it is useful to have
in --strict. Unlike making this the default behavior eventually in 2.0,
which we are also planning to do, it can be added to --strict
immediately due to --strict having looser backwards-compatibility
requirements (or so I interpret --strict's
[documentation](https://mypy.readthedocs.io/en/stable/command_line.html#cmdoption-mypy-strict)).
This PR also includes tests, for --strict and also for no flags.1 parent 0b65f21 commit 772cd0c
File tree
3 files changed
+18
-2
lines changed- mypy
- test-data/unit
3 files changed
+18
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
917 | 917 | | |
918 | 918 | | |
919 | 919 | | |
920 | | - | |
| 920 | + | |
921 | 921 | | |
922 | 922 | | |
923 | 923 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2408 | 2408 | | |
2409 | 2409 | | |
2410 | 2410 | | |
| 2411 | + | |
| 2412 | + | |
| 2413 | + | |
| 2414 | + | |
| 2415 | + | |
| 2416 | + | |
| 2417 | + | |
| 2418 | + | |
| 2419 | + | |
| 2420 | + | |
| 2421 | + | |
| 2422 | + | |
| 2423 | + | |
| 2424 | + | |
| 2425 | + | |
| 2426 | + | |
| 2427 | + | |
2411 | 2428 | | |
2412 | 2429 | | |
2413 | 2430 | | |
| |||
0 commit comments