From 2d091dcc5b1250b2c9457f0ff34c0c997a6a0867 Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Sun, 16 Aug 2020 21:35:56 -0500 Subject: Refactor parsers to enforce loads/dumps/decode_error requirement --- config_file/abstract_parser.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'config_file/abstract_parser.py') diff --git a/config_file/abstract_parser.py b/config_file/abstract_parser.py index 689fece..dcc2b0f 100644 --- a/config_file/abstract_parser.py +++ b/config_file/abstract_parser.py @@ -3,7 +3,8 @@ from typing import Any class AbstractParser(ABC): - """Abstract Parser is the API contract for all parsers. + """Abstract Parser is the API contract for a parser for + use in the ConfigFile object. Every parser in ConfigFile implements this parser, and any user created parsers must implement this parser in @@ -18,9 +19,6 @@ class AbstractParser(ABC): Args: file_contents: The stringified version of a file. - - Attributes: - file_contents: The stringified version of a file. """ @abstractmethod -- cgit v1.2.3