Skip to content

Commit c03b708

Browse files
committed
ruff fixes
1 parent 47db93a commit c03b708

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

bio2zarr/vcf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
import shutil
1313
import sys
1414
import tempfile
15-
from typing import Any, List
15+
from typing import Any
1616

1717
import cyvcf2
1818
import humanfriendly
@@ -746,9 +746,9 @@ class IcfFieldWriter:
746746
transformer: VcfValueTransformer
747747
compressor: Any
748748
max_buffered_bytes: int
749-
buff: List[Any] = dataclasses.field(default_factory=list)
749+
buff: list[Any] = dataclasses.field(default_factory=list)
750750
buffered_bytes: int = 0
751-
chunk_index: List[int] = dataclasses.field(default_factory=lambda: [0])
751+
chunk_index: list[int] = dataclasses.field(default_factory=lambda: [0])
752752
num_records: int = 0
753753

754754
def append(self, val):

bio2zarr/vcf_utils.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
import os
44
import pathlib
55
import struct
6+
from collections.abc import Sequence
67
from dataclasses import dataclass
7-
from typing import IO, Any, Dict, Optional, Sequence, Union
8+
from typing import IO, Any, Optional, Union
89

910
import cyvcf2
1011
import humanfriendly
@@ -183,7 +184,7 @@ def get_first_locus_in_bin(csi: CSIIndex, bin: int) -> int:
183184

184185

185186
def read_csi(
186-
file: PathType, storage_options: Optional[Dict[str, str]] = None
187+
file: PathType, storage_options: Optional[dict[str, str]] = None
187188
) -> CSIIndex:
188189
"""Parse a CSI file into a `CSIIndex` object.
189190
@@ -297,7 +298,7 @@ def offsets(self) -> Any:
297298

298299

299300
def read_tabix(
300-
file: PathType, storage_options: Optional[Dict[str, str]] = None
301+
file: PathType, storage_options: Optional[dict[str, str]] = None
301302
) -> TabixIndex:
302303
"""Parse a tabix file into a `TabixIndex` object.
303304

0 commit comments

Comments
 (0)