Skip to content

Commit

Permalink
changed JSONType to be nonrecursive and removed cast on key
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanketh7 committed Oct 18, 2022
1 parent bb9807f commit 8de0cef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dataprofiler/_typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
import pandas as pd

DataArray = Union[pd.DataFrame, pd.Series, np.ndarray]
JSONType = Union[str, int, float, bool, None, List["JSONType"], Dict[str, "JSONType"]]
JSONType = Union[str, int, float, bool, None, List, Dict]
2 changes: 1 addition & 1 deletion dataprofiler/data_readers/data_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def unicode_to_str(data: JSONType, ignore_dicts: bool = False) -> JSONType:
# if data is a dictionary
if isinstance(data, dict) and not ignore_dicts:
return {
cast(str, unicode_to_str(key, ignore_dicts=True)): unicode_to_str(
unicode_to_str(key, ignore_dicts=True): unicode_to_str(
value, ignore_dicts=True
)
for key, value in data.items()
Expand Down

0 comments on commit 8de0cef

Please sign in to comment.