diff --git a/requirements-tests-py3.txt b/requirements-tests-py3.txt index dfd31e6fb..5f54c9cfb 100644 --- a/requirements-tests-py3.txt +++ b/requirements-tests-py3.txt @@ -5,4 +5,4 @@ flake8==3.8.3 flake8-bugbear==20.1.4 flake8-pyi==20.5.0 isort[pyproject]==5.1.1 -pytype>=2020.07.30 +pytype>=2020.08.17 diff --git a/stdlib/3/tkinter/__init__.pyi b/stdlib/3/tkinter/__init__.pyi index b06043619..5961265d5 100644 --- a/stdlib/3/tkinter/__init__.pyi +++ b/stdlib/3/tkinter/__init__.pyi @@ -664,7 +664,7 @@ class Pack: # slaves = Misc.pack_slaves # pack_slaves = Misc.pack_slaves -class _PlaceInfo(_InMiscNonTotal, total=False): # empty dict if widget hasn't been placed +class _PlaceInfo(_InMiscNonTotal): # empty dict if widget hasn't been placed anchor: _Anchor bordermode: Literal["inside", "outside", "ignore"] width: str # can be int()ed (even after e.g. widget.place(height='2.3c') or similar) @@ -705,7 +705,7 @@ class Place: # slaves = Misc.place_slaves # place_slaves = Misc.place_slaves -class _GridInfo(_InMiscNonTotal, total=False): # empty dict if widget hasn't been gridded +class _GridInfo(_InMiscNonTotal): # empty dict if widget hasn't been gridded column: int columnspan: int row: int diff --git a/tests/pytype_exclude_list.txt b/tests/pytype_exclude_list.txt index 23b922ab5..f066c18d8 100644 --- a/tests/pytype_exclude_list.txt +++ b/tests/pytype_exclude_list.txt @@ -17,18 +17,3 @@ third_party/2and3/attr/validators.pyi third_party/2and3/pynamodb/models.pyi third_party/3/six/__init__.pyi third_party/3/six/moves/__init__.pyi - -# anything that imports tkinter -# https://github.com/google/pytype/issues/637 -# https://github.com/google/pytype/issues/644 -stdlib/3/tkinter/__init__.pyi -stdlib/3/tkinter/dialog.pyi -stdlib/3/tkinter/filedialog.pyi -stdlib/3/tkinter/font.pyi -stdlib/3/tkinter/ttk.pyi -third_party/3/six/moves/tkinter.pyi -third_party/3/six/moves/tkinter_dialog.pyi -third_party/3/six/moves/tkinter_filedialog.pyi -third_party/3/six/moves/tkinter_tkfiledialog.pyi -third_party/3/six/moves/tkinter_ttk.pyi -stdlib/2and3/turtle.pyi