Skip to content

Commit

Permalink
fix return type
Browse files Browse the repository at this point in the history
  • Loading branch information
raoulvm committed Jan 9, 2024
1 parent 05d627a commit a363478
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rasa/shared/core/domain.py
Original file line number Diff line number Diff line change
Expand Up @@ -1806,7 +1806,9 @@ def is_empty(self) -> bool:
return self.as_dict() == Domain.empty().as_dict()

@staticmethod
def is_domain_file(filename: Union[Text, Path]) -> bool:
def is_domain_file(
filename: Union[Text, Path]
) -> Union[bool, Dict[str, Any], List[Any]]:
"""Checks whether the given file path is a Rasa domain file.
Args:
Expand Down

0 comments on commit a363478

Please sign in to comment.