jw-pkg/src/python/jw/pkg/cmds/distro/backend/BePkg.py

24 lines
530 B
Python
Raw Normal View History

# -*- coding: utf-8 -*-
from __future__ import annotations
from typing import TYPE_CHECKING
import abc
from typing import Iterable
from .Backend import Backend as Base
if TYPE_CHECKING:
from ..CmdPkg import CmdPkg as Parent
class BePkg(Base):
def __init__(self, parent: Parent):
super().__init__(parent)
async def list_files(self, name: str) -> Iterable[str]:
return await self._list_files(name)
@abc.abstractmethod
async def _list_files(self, name: str) -> Iterable[str]:
pass