From d45c05f72d64b4790453b019d6a025bab720f321 Mon Sep 17 00:00:00 2001 From: Jelle Zijlstra Date: Thu, 11 Jul 2024 18:31:55 -0700 Subject: [PATCH] Revert "Improve performance of constructing typeshed_client (#789)" This reverts commit 0cb97878e4a0e38f8fd3ed935bf6450844697e81. --- pyanalyze/typeshed.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pyanalyze/typeshed.py b/pyanalyze/typeshed.py index 95607e65..b5cd1e42 100644 --- a/pyanalyze/typeshed.py +++ b/pyanalyze/typeshed.py @@ -16,7 +16,6 @@ from collections.abc import Set as AbstractSet from dataclasses import dataclass, field, replace from enum import EnumMeta -from pathlib import Path from types import GeneratorType, MethodDescriptorType, ModuleType from typing import ( Any, @@ -184,9 +183,7 @@ def make( verbose: bool = False, ) -> "TypeshedFinder": extra_paths = options.get_value_for(StubPath) - ctx = typeshed_client.get_search_context( - search_path=[Path(p) for p in sys.path] - ) + ctx = typeshed_client.get_search_context() ctx = typeshed_client.get_search_context( search_path=[*ctx.search_path, *extra_paths] )