mirror of
https://github.com/revng/revng
synced 2026-06-21 14:07:57 +00:00
tmp
This commit is contained in:
@@ -114,8 +114,7 @@ class Pass(abc.ABC):
|
||||
@abc.abstractmethod
|
||||
async def run(
|
||||
self, files: Dict[str, Dict[Path, str]], args: Dict[str, str | bool]
|
||||
) -> PassResult:
|
||||
...
|
||||
) -> PassResult: ...
|
||||
|
||||
|
||||
class TaggedPass(Pass, abc.ABC):
|
||||
@@ -137,8 +136,7 @@ class TaggedPass(Pass, abc.ABC):
|
||||
return await self.process(files[self.tag], args)
|
||||
|
||||
@abc.abstractmethod
|
||||
async def process(self, files: Dict[Path, str], args: Dict[str, str | bool]) -> PassResult:
|
||||
...
|
||||
async def process(self, files: Dict[Path, str], args: Dict[str, str | bool]) -> PassResult: ...
|
||||
|
||||
|
||||
def log(string: str):
|
||||
|
||||
@@ -58,12 +58,10 @@ class DocumentErrorReasonList(Sequence[DocumentErrorReason]):
|
||||
return _api.rp_document_error_reasons_count(self.document_error._document_error)
|
||||
|
||||
@overload
|
||||
def __getitem__(self, idx: int) -> DocumentErrorReason:
|
||||
...
|
||||
def __getitem__(self, idx: int) -> DocumentErrorReason: ...
|
||||
|
||||
@overload
|
||||
def __getitem__(self, idx: slice) -> Sequence[DocumentErrorReason]:
|
||||
...
|
||||
def __getitem__(self, idx: slice) -> Sequence[DocumentErrorReason]: ...
|
||||
|
||||
def __getitem__(self, idx: int | slice):
|
||||
if isinstance(idx, int):
|
||||
|
||||
@@ -23,20 +23,15 @@ class Synchronizer(Protocol):
|
||||
"""A Synchronizer is a class that takes care of saving the manager's
|
||||
workdir somewhere other than the local disk."""
|
||||
|
||||
def load(self, path: Path) -> bool:
|
||||
...
|
||||
def load(self, path: Path) -> bool: ...
|
||||
|
||||
def save(self, path: Path, old_directories: list[Path]) -> bool:
|
||||
...
|
||||
def save(self, path: Path, old_directories: list[Path]) -> bool: ...
|
||||
|
||||
def save_exceptions(self) -> tuple[type[Exception], ...]:
|
||||
...
|
||||
def save_exceptions(self) -> tuple[type[Exception], ...]: ...
|
||||
|
||||
def get_initial_credentials(self) -> str:
|
||||
...
|
||||
def get_initial_credentials(self) -> str: ...
|
||||
|
||||
def set_credentials(self, credentials: str):
|
||||
...
|
||||
def set_credentials(self, credentials: str): ...
|
||||
|
||||
|
||||
executor = ThreadPoolExecutor(8)
|
||||
|
||||
@@ -19,11 +19,9 @@ from revng.internal.cli.support import popen
|
||||
class DaemonHandler(Protocol):
|
||||
url: str
|
||||
|
||||
async def wait_for_start(self):
|
||||
...
|
||||
async def wait_for_start(self): ...
|
||||
|
||||
def terminate(self) -> int:
|
||||
...
|
||||
def terminate(self) -> int: ...
|
||||
|
||||
|
||||
class ExternalDaemonHandler(DaemonHandler):
|
||||
|
||||
@@ -521,13 +521,11 @@ class DiffSet(abc.ABC, Generic[StructBaseT]):
|
||||
|
||||
@staticmethod
|
||||
@abc.abstractmethod
|
||||
def _get_root() -> StructBase:
|
||||
...
|
||||
def _get_root() -> StructBase: ...
|
||||
|
||||
@staticmethod
|
||||
@abc.abstractmethod
|
||||
def _get_types_metadata() -> TypesMetadata:
|
||||
...
|
||||
def _get_types_metadata() -> TypesMetadata: ...
|
||||
|
||||
@classmethod
|
||||
def make(cls, obj_old: StructBaseT, obj_new: StructBaseT) -> "DiffSet":
|
||||
|
||||
@@ -36,8 +36,7 @@ class Subcommand(abc.ABC):
|
||||
self.parser.set_defaults(handler=self.handle)
|
||||
|
||||
@abc.abstractmethod
|
||||
def handle(self, args, schema: Schema):
|
||||
...
|
||||
def handle(self, args, schema: Schema): ...
|
||||
|
||||
@staticmethod
|
||||
def handle_single_file_output(output: str | None, source: str):
|
||||
|
||||
Reference in New Issue
Block a user