Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace typing.Dict with dict #231

Merged
merged 1 commit into from
Jan 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions pantab/_reader.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pathlib
import shutil
import tempfile
from typing import Dict, Optional, Union
from typing import Optional, Union

import pandas as pd
import pyarrow as pa
Expand All @@ -27,9 +27,9 @@ def frame_from_hyper(

def frames_from_hyper(
source: Union[str, pathlib.Path],
) -> Dict[tab_api.TableName, pd.DataFrame]:
) -> dict[tab_api.TableName, pd.DataFrame]:
"""See api.rst for documentation."""
result: Dict[TableType, pd.DataFrame] = {}
result: dict[TableType, pd.DataFrame] = {}

table_names = []
with tempfile.TemporaryDirectory() as tmp_dir, tab_api.HyperProcess(
Expand Down
4 changes: 2 additions & 2 deletions pantab/_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import shutil
import tempfile
import uuid
from typing import Dict, Optional, Union
from typing import Optional, Union

import pandas as pd
import pyarrow as pa
Expand Down Expand Up @@ -33,7 +33,7 @@ def frame_to_hyper(


def frames_to_hyper(
dict_of_frames: Dict[pantab_types.TableType, pd.DataFrame],
dict_of_frames: dict[pantab_types.TableType, pd.DataFrame],
database: Union[str, pathlib.Path],
table_mode: str = "w",
*,
Expand Down
Loading