Commit bcfbc82
committed
Ignore a few override errors in typeshed
I was seeing errors like these in our Bazel-based mypy configuration, which
may type check typeshed in some non-standard way:
```
mypy/typeshed/stdlib/tempfile.pyi:390: error: Argument 1 of "writelines" is incompatible with supertype "_IOBase"; supertype defines the argument type as "Iterable[Buffer]" [override]
mypy/typeshed/stdlib/tempfile.pyi:390: note: This violates the Liskov substitution principle
mypy/typeshed/stdlib/tempfile.pyi:390: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#incompatible-overrides
mypy/typeshed/stdlib/tkinter/ttk.pyi:565: error: Signature of "forget" incompatible with supertype "Pack" [override]
mypy/typeshed/stdlib/tkinter/ttk.pyi:565: note: Superclass:
mypy/typeshed/stdlib/tkinter/ttk.pyi:565: note: def pack_forget(self) -> None
mypy/typeshed/stdlib/tkinter/ttk.pyi:565: note: Subclass:
mypy/typeshed/stdlib/tkinter/ttk.pyi:565: note: def forget(self, tab_id: Any) -> None
```
I'm just merging this directly to the mypy repo so that I can move
forward more quickly, as this is needed to unblock the public release.1 parent 501a07b commit bcfbc82
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
387 | 387 | | |
388 | 388 | | |
389 | 389 | | |
390 | | - | |
| 390 | + | |
391 | 391 | | |
392 | 392 | | |
393 | 393 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
562 | 562 | | |
563 | 563 | | |
564 | 564 | | |
565 | | - | |
| 565 | + | |
566 | 566 | | |
567 | 567 | | |
568 | 568 | | |
| |||
0 commit comments