Skip to content

Commit aaabbfd

Browse files
fix: add missing types for interface methods
1 parent 1b64873 commit aaabbfd

File tree

1 file changed

+4
-4
lines changed
  • snakemake_interface_executor_plugins

1 file changed

+4
-4
lines changed

snakemake_interface_executor_plugins/jobs.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,18 +101,18 @@ def benchmark(self) -> Optional[str]: ...
101101

102102
@property
103103
@abstractmethod
104-
def message(self): ...
104+
def message(self) -> Optional[str]: ...
105105

106106

107107
class GroupJobExecutorInterface(ABC):
108108
@property
109109
@abstractmethod
110-
def jobs(self): ...
110+
def jobs(self) -> Iterable[SingleJobExecutorInterface]: ...
111111

112112
@property
113113
@abstractmethod
114-
def groupid(self): ...
114+
def groupid(self) -> str: ...
115115

116116
@property
117117
@abstractmethod
118-
def toposorted(self): ...
118+
def toposorted(self) -> Sequence[Sequence[SingleJobExecutorInterface]]: ...

0 commit comments

Comments
 (0)