| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
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.
|
According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅ |
Sorry, something went wrong.
|
This is going to cause issues with the next automatic mypy sync. We could add another patch to the sync workflow but that will make future maintenance harder. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
I was seeing errors like these in our Bazel-based mypy configuration, which may type check typeshed in some non-standard way:
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.