about summary refs log tree commit diff
path: root/r_qtl/r_qtl2.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2025-12-19 12:53:20 -0600
committerFrederick Muriuki Muriithi2025-12-19 12:53:20 -0600
commit56ed0f57b816b1023a97b7205268deed0a45c77e (patch)
tree29bad7b0b2ff78230d80b5c5ec76eb2822b8d84b /r_qtl/r_qtl2.py
parentd04b7cb89b3fbaa1689f8f6525a2740eda7c3be3 (diff)
downloadgn-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.py8
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