Skip to content

Commit

Permalink
Add responses property (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
cariad authored Nov 28, 2021
1 parent 812d193 commit 0e7b834
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion asking/protocols/state_protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def perform_actions(self, actions: List[Dict[str, Any]]) -> StageKey:
"""

@property
def responses(self) -> Dict[Any, Any]:
def responses(self) -> Any:
"""
Gets the default values and current responses.
"""
Expand Down
8 changes: 8 additions & 0 deletions asking/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,14 @@ def references(self) -> Dict[str, str]:

return self._references

@property
def responses(self) -> Any:
"""
Gets the default values and current responses.
"""

return self._responses

def perform_action(self, action_dict: Dict[str, Any]) -> Optional[StageKey]:
self.logger.debug("Performing all known actions on: %s", action_dict)
any_recognised = False
Expand Down

0 comments on commit 0e7b834

Please sign in to comment.