summaryrefslogtreecommitdiffstats
path: root/test/lib/ansible_test/_internal/provider/source/__init__.py
blob: aa8ca47faa3c448ac69f22a51d17e214c926974a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
"""Common code for source providers."""
from __future__ import annotations

import abc

from .. import (
    PathProvider,
)


class SourceProvider(PathProvider):
    """Base class for source providers."""
    @abc.abstractmethod
    def get_paths(self, path: str) -> list[str]:
        """Return the list of available content paths under the given path."""