From 0fcafa2eddd34f15f34ad0a40f662cf3d5bcef0e Mon Sep 17 00:00:00 2001 From: jvoisin Date: Mon, 13 Nov 2023 15:03:42 +0100 Subject: Raise a ValueError for invalid FLAC files to please mypy --- libmat2/abstract.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'libmat2/abstract.py') diff --git a/libmat2/abstract.py b/libmat2/abstract.py index c531fbd..adf384a 100644 --- a/libmat2/abstract.py +++ b/libmat2/abstract.py @@ -34,7 +34,10 @@ class AbstractParser(abc.ABC): @abc.abstractmethod def get_meta(self) -> Dict[str, Union[str, Dict]]: - """Return all the metadata of the current file""" + """Return all the metadata of the current file + + :raises RuntimeError: Raised if the cleaning process went wrong. + """ @abc.abstractmethod def remove_all(self) -> bool: -- cgit v1.3