blob: 359c5d6a2e1649fc2fe75c216d2d171016468c9a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
"""Common code for source providers."""
from __future__ import annotations
import abc
import typing as t
from .. import (
PathProvider,
)
class SourceProvider(PathProvider):
"""Base class for source providers."""
@abc.abstractmethod
def get_paths(self, path): # type: (str) -> t.List[str]
"""Return the list of available content paths under the given path."""
|