Skip to content

Commit

Permalink
fix filepathprovider generic type (#1036)
Browse files Browse the repository at this point in the history
* fix filepathprovider type

* remove extra import
  • Loading branch information
kinto0 authored Oct 6, 2023
1 parent 19c2862 commit 83f0dae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libcst/metadata/file_path_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down

0 comments on commit 83f0dae

Please sign in to comment.