From eb713ca79d0f667a54e4148726d14237f096ee63 Mon Sep 17 00:00:00 2001 From: Wang <120731947+WangGithubUser@users.noreply.github.com> Date: Mon, 21 Aug 2023 14:01:00 +0800 Subject: [PATCH] Fix type errors --- client/configuration/search_path.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/client/configuration/search_path.py b/client/configuration/search_path.py index b82b6be7fce..f49b835f3cb 100644 --- a/client/configuration/search_path.py +++ b/client/configuration/search_path.py @@ -28,9 +28,12 @@ LOG: logging.Logger = logging.getLogger(__name__) dist_info_in_root: Dict[str, List[str]] = {} -_site_filter: re.Pattern[str] = re.compile(r".*-([0-99]\.)*dist-info") -_PYCACHE: re.Pattern[str] = re.compile("__pycache__") +# pyre-fixme[5]: Globally accessible variable `_site_filter` has type `re.Pattern[str]` but no type is specified. +_site_filter = re.compile(r".*-([0-99]\.)*dist-info") + +# pyre-fixme[5]: Globally accessible variable `_PYCACHE` has type `re.Pattern[str]` but no type is specified. +_PYCACHE = re.compile("__pycache__") def _expand_relative_root(path: str, relative_root: str) -> str: