From de616375f1c006c34e6cefed83e5dba7136f670e Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Fri, 2 Oct 2026 09:23:58 -0500 Subject: Update `LineError` type. --- scripts/genotypes/types.py | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'scripts') diff --git a/scripts/genotypes/types.py b/scripts/genotypes/types.py index 482d8d4..18af7b8 100644 --- a/scripts/genotypes/types.py +++ b/scripts/genotypes/types.py @@ -24,21 +24,22 @@ class FieldsIdentity: samples: Sequence[str] +@dataclass +class LineError: + """An error in a specific line of the genotype file.""" + row_header: str + column_header: str + message: str + line: Sequence[str] + + @dataclass(frozen=True) class LineDetails: """Data type for processed line details""" line_content: Sequence[Union[str, None]] geno_symbols: Sequence[str] line_header: str - - -@dataclass(frozen=True) -class LineError: - """An error object for a line.""" - marker: str - field: str - value: Union[str, None] - message: str + errors: Sequence[LineError] @dataclass(frozen=True) -- cgit 1.4.1