diff options
| author | Frederick Muriuki Muriithi | 2025-12-19 12:53:20 -0600 |
|---|---|---|
| committer | Frederick Muriuki Muriithi | 2025-12-19 12:53:20 -0600 |
| commit | 56ed0f57b816b1023a97b7205268deed0a45c77e (patch) | |
| tree | 29bad7b0b2ff78230d80b5c5ec76eb2822b8d84b /r_qtl/r_qtl2.py | |
| parent | d04b7cb89b3fbaa1689f8f6525a2740eda7c3be3 (diff) | |
| download | gn-uploader-56ed0f57b816b1023a97b7205268deed0a45c77e.tar.gz | |
Fix issues caught by type-checker.
Diffstat (limited to 'r_qtl/r_qtl2.py')
| -rw-r--r-- | r_qtl/r_qtl2.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/r_qtl/r_qtl2.py b/r_qtl/r_qtl2.py index 0ef487f..ce1dbf8 100644 --- a/r_qtl/r_qtl2.py +++ b/r_qtl/r_qtl2.py @@ -584,16 +584,16 @@ def read_csv_file_headers( comment_char: str = "#" ) -> tuple[str, ...]: """Read the 'true' headers of a CSV file.""" - headers = tuple() + headers: tuple[str, ...] = tuple() for line in read_text_file(filepath): if line.startswith(comment_char): continue - line = tuple(field.strip() for field in line.split(separator)) + row = tuple(field.strip() for field in line.split(separator)) if not transposed: - return line + return row - headers = headers + (line[0],) + headers = headers + (row[0],) continue return headers |
