Skip to content

Commit

Permalink
Replace built-in dict object with its type Dict
Browse files Browse the repository at this point in the history
  • Loading branch information
psmyth94 committed Oct 13, 2024
1 parent aed2b1d commit e721caa
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/biosets/packaged_modules/csv/csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import inspect
import itertools
from dataclasses import dataclass
from typing import TYPE_CHECKING, Mapping, Optional, Sequence, Union
from typing import TYPE_CHECKING, Dict, Mapping, Optional, Sequence, Union

import datasets
import pandas as pd
Expand All @@ -14,7 +14,6 @@
from biosets.utils import get_kwargs, logging
from biosets.utils.import_util import is_polars_available


if TYPE_CHECKING:
from polars.type_aliases import CsvEncoding

Expand All @@ -35,7 +34,7 @@ class CsvConfig(datasets.BuilderConfig):
comment_prefix: Optional[str] = None
quote_char: str = '"'
skip_rows: int = 0
null_values: Optional[Union[str, Sequence[str], dict[str, str]]] = None
null_values: Optional[Union[str, Sequence[str], Dict[str, str]]] = None
missing_utf8_is_empty_string: bool = False
ignore_errors: bool = False
try_parse_dates: bool = False
Expand Down

0 comments on commit e721caa

Please sign in to comment.