This commit is contained in:
Alessandro Di Federico
2025-09-10 17:59:45 +02:00
parent b532b0674a
commit b91c0f88c6
6 changed files with 14 additions and 28 deletions
+2 -4
View File
@@ -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):
+2 -4
View File
@@ -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):
+5 -10
View File
@@ -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):
+2 -4
View File
@@ -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":
+1 -2
View File
@@ -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):