@@ -666,7 +666,7 @@ def _transform_doc(self) -> etree._XSLTResultTree:
666
666
667
667
668
668
def get_data_from_filepath (
669
- filepath_or_buffer : FilePath | bytes | ReadBuffer [bytes ] | ReadBuffer [str ],
669
+ filepath_or_buffer : FilePath | ReadBuffer [bytes ] | ReadBuffer [str ],
670
670
encoding : str | None ,
671
671
compression : CompressionOptions ,
672
672
storage_options : StorageOptions ,
@@ -678,9 +678,9 @@ def get_data_from_filepath(
678
678
1. filepath (string-like)
679
679
2. file-like object (e.g. open file object, StringIO)
680
680
"""
681
- filepath_or_buffer = stringify_path (filepath_or_buffer ) # type: ignore[arg-type]
682
- with get_handle ( # pyright: ignore[reportCallIssue]
683
- filepath_or_buffer , # pyright: ignore[reportArgumentType]
681
+ filepath_or_buffer = stringify_path (filepath_or_buffer )
682
+ with get_handle (
683
+ filepath_or_buffer ,
684
684
"r" ,
685
685
encoding = encoding ,
686
686
compression = compression ,
@@ -693,7 +693,9 @@ def get_data_from_filepath(
693
693
)
694
694
695
695
696
- def preprocess_data (data ) -> io .StringIO | io .BytesIO :
696
+ def preprocess_data (
697
+ data : str | bytes | io .StringIO | io .BytesIO ,
698
+ ) -> io .StringIO | io .BytesIO :
697
699
"""
698
700
Convert extracted raw data.
699
701
@@ -711,7 +713,7 @@ def preprocess_data(data) -> io.StringIO | io.BytesIO:
711
713
return data
712
714
713
715
714
- def _data_to_frame (data , ** kwargs ) -> DataFrame :
716
+ def _data_to_frame (data : list [ dict [ str , str | None ]] , ** kwargs ) -> DataFrame :
715
717
"""
716
718
Convert parsed data to Data Frame.
717
719
0 commit comments