Skip to content

Commit d540098

Browse files
committed
remove redundant cast to fix mypy error
1 parent 00cdbf0 commit d540098

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

awswrangler/s3/_read.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ def _apply_partitions(df: pd.DataFrame, dataset: bool, path: str, path_root: Opt
9393
return df
9494
if dataset is True and path_root is None:
9595
raise exceptions.InvalidArgument("A path_root is required when dataset=True.")
96-
path_root = cast(str, path_root)
9796
partitions: Dict[str, str] = _extract_partitions_from_path(path_root=path_root, path=path)
9897
_logger.debug("partitions: %s", partitions)
9998
count: int = len(df.index)

0 commit comments

Comments
 (0)