From 8f32812ce73193366ee00d883fd427c830f5a8e9 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Wed, 18 May 2022 16:38:52 +0300 Subject: Simplify slot names and fix namedtuple type name - replace `line_number` with `line` and `column_number` with `column` to save on slot name lengths. - Fix the type name for the `DuplicateHeading` namedtuple type --- quality_control/errors.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'quality_control/errors.py') diff --git a/quality_control/errors.py b/quality_control/errors.py index 1eda646..4206b5b 100644 --- a/quality_control/errors.py +++ b/quality_control/errors.py @@ -26,7 +26,7 @@ class ParseError(Exception): super().__init__(*args) InvalidValue = namedtuple( - "InvalidValue", ("line_number", "column_number", "value", "message")) + "InvalidValue", ("line", "column", "value", "message")) DuplicateHeading = namedtuple( - "InvalidValue", ("line_number", "heading", "columns","message")) + "DuplicateHeading", ("line", "columns", "heading", "message")) -- cgit v1.2.3