From 83f0daed42b0393b004f7cf4b12e12d6f92f6b25 Mon Sep 17 00:00:00 2001 From: Kyle Into Date: Thu, 5 Oct 2023 20:18:39 -0700 Subject: [PATCH] fix filepathprovider generic type (#1036) * fix filepathprovider type * remove extra import --- libcst/metadata/file_path_provider.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libcst/metadata/file_path_provider.py b/libcst/metadata/file_path_provider.py index 681d37939..5ed9baa68 100644 --- a/libcst/metadata/file_path_provider.py +++ b/libcst/metadata/file_path_provider.py @@ -4,13 +4,13 @@ # LICENSE file in the root directory of this source tree. from pathlib import Path -from typing import Collection, List, Mapping, Optional +from typing import List, Mapping, Optional import libcst as cst from libcst.metadata.base_provider import BatchableMetadataProvider -class FilePathProvider(BatchableMetadataProvider[Collection[Path]]): +class FilePathProvider(BatchableMetadataProvider[Path]): """ Provides the path to the current file on disk as metadata for the root :class:`~libcst.Module` node. Requires a :class:`~libcst.metadata.FullRepoManager`.