From 1e1a5868936145392d421e3e44258d9d0863ce4c Mon Sep 17 00:00:00 2001 From: Rebecca Chen Date: Wed, 17 Aug 2022 19:18:33 -0700 Subject: [PATCH] Update pytype_test to be compatible with the latest pytype version. (#8551) We moved some files around =) --- requirements-tests.txt | 2 +- tests/pytype_test.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/requirements-tests.txt b/requirements-tests.txt index 5c3f65989..a29d4c5d9 100644 --- a/requirements-tests.txt +++ b/requirements-tests.txt @@ -1,5 +1,5 @@ mypy==0.971 -pytype==2022.8.3; platform_system != "Windows" +pytype==2022.8.17; platform_system != "Windows" # must match .pre-commit-config.yaml black==22.6.0 # must match .pre-commit-config.yaml diff --git a/tests/pytype_test.py b/tests/pytype_test.py index 1b87d7d48..01a50d3d7 100755 --- a/tests/pytype_test.py +++ b/tests/pytype_test.py @@ -19,7 +19,7 @@ import traceback from collections.abc import Sequence from pytype import config as pytype_config, load_pytd # type: ignore[import] -from pytype.pytd import typeshed # type: ignore[import] +from pytype.imports import typeshed # type: ignore[import] TYPESHED_SUBDIRS = ["stdlib", "stubs"] TYPESHED_HOME = "TYPESHED_HOME"