Skip to content

Commit

Permalink
Implemented abstract method that returns the configuration of a given…
Browse files Browse the repository at this point in the history
… mode.
  • Loading branch information
LeonMee committed Nov 11, 2024
1 parent 5688f2a commit 47a66ea
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pyobs/interfaces/IMode.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,12 @@ async def get_mode(self, group: int = 0, **kwargs: Any) -> str:
"""
...

@abstractmethod
async def get_mode_configs(self, mode:str = None) -> dict:
"""Get given mode's configurations.
Args:
mode: Name of mode to get.
"""
...

__all__ = ["IMode"]

0 comments on commit 47a66ea

Please sign in to comment.