Skip to content

Commit

Permalink
moved JSONType to _typing.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanketh7 committed Oct 18, 2022
1 parent 849263b commit 9485c9d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion dataprofiler/_typing.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
"""Contains typing aliases."""
from typing import Union
from typing import Dict, List, Union

import numpy as np
import pandas as pd

DataArray = Union[pd.DataFrame, pd.Series, np.ndarray]
JSONType = Union[str, int, float, bool, None, List["JSONType"], Dict[str, "JSONType"]]
3 changes: 1 addition & 2 deletions dataprofiler/data_readers/data_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,11 @@
from chardet.universaldetector import UniversalDetector

from .. import dp_logging
from .._typing import JSONType
from .filepath_or_buffer import FileOrBufferHandler, is_stream_buffer # NOQA

logger = dp_logging.get_child_logger(__name__)

JSONType = Union[str, int, float, bool, None, List["JSONType"], Dict[str, "JSONType"]]


def data_generator(data_list: List[str]) -> Generator[str, None, None]:
"""
Expand Down

0 comments on commit 9485c9d

Please sign in to comment.