55import json
66import logging
77import pprint
8- from typing import TYPE_CHECKING , Any , Dict , Iterator , List , Optional , Tuple , Union
8+ from typing import Any , Dict , Iterator , List , Optional , Tuple , Union
99
1010import boto3
1111import pandas as pd
1919from awswrangler .s3 ._list import _path2list
2020from awswrangler .s3 ._read import _get_path_ignore_suffix
2121
22- if TYPE_CHECKING :
23- import ray # pylint: disable=unused-import
24-
2522_logger : logging .Logger = logging .getLogger (__name__ )
2623
2724_RANGE_CHUNK_SIZE : int = int (1024 * 1024 )
@@ -42,7 +39,7 @@ def _select_object_content(
4239 boto3_session : Optional [boto3 .Session ],
4340 args : Dict [str , Any ],
4441 scan_range : Optional [Tuple [int , int ]] = None ,
45- ) -> Union [ pa .Table , "ray.ObjectRef[pa.Table]" ] :
42+ ) -> pa .Table :
4643 client_s3 : boto3 .client = _utils .client (service_name = "s3" , session = boto3_session )
4744
4845 if scan_range :
@@ -83,7 +80,7 @@ def _select_query(
8380 scan_range_chunk_size : Optional [int ] = None ,
8481 boto3_session : Optional [boto3 .Session ] = None ,
8582 s3_additional_kwargs : Optional [Dict [str , Any ]] = None ,
86- ) -> List [Union [ pa .Table , "ray.ObjectRef[pa.Table]" ] ]:
83+ ) -> List [pa .Table ]:
8784 bucket , key = _utils .parse_path (path )
8885
8986 args : Dict [str , Any ] = {
0 commit comments