Skip to content

Commit

Permalink
update type hint of usecols
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeffery Wang committed Oct 12, 2022
1 parent a26c57b commit 1b2cc9b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions awesome_object_store/base.py
Expand Up @@ -109,8 +109,8 @@ def fget_df(
file: UploadFile,
column_types: dict = {},
date_columns: List[str] = [],
usecols: List = None,
converters: dict = None,
usecols: Optional[List] = None,
converters: Optional[dict] = None,
) -> Optional[pd.DataFrame]:
try:
file_io = StringIO(str(file.file.read(), "utf-8"))
Expand Down
4 changes: 2 additions & 2 deletions awesome_object_store/gcs.py
Expand Up @@ -125,8 +125,8 @@ def get_df(
name: str,
column_types: dict = {},
date_columns: List[str] = [],
usecols: List = None,
converters: dict = None,
usecols: Optional[List] = None,
converters: Optional[dict] = None,
) -> Optional[pd.DataFrame]:
"""Gets data of an object and return a dataframe."""
try:
Expand Down
4 changes: 2 additions & 2 deletions awesome_object_store/minio.py
Expand Up @@ -113,8 +113,8 @@ def get_df(
name: str,
column_types: dict = {},
date_columns: List[str] = [],
usecols: List = None,
converters: dict = None,
usecols: Optional[List] = None,
converters: Optional[dict] = None,
) -> Optional[pd.DataFrame]:
"""Gets data of an object and return a dataframe."""
try:
Expand Down

0 comments on commit 1b2cc9b

Please sign in to comment.