Skip to content

Commit ff5c322

Browse files
committed
update type hints for parameters
1 parent bf10355 commit ff5c322

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

pandas/io/html.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import numbers
99
import os
1010
import re
11-
from typing import Dict, List, Optional, Pattern, Union
11+
from typing import Dict, List, Optional, Pattern, Sequence, Union
1212

1313
from pandas._typing import FilePathOrBuffer
1414
from pandas.compat._optional import import_optional_dependency
@@ -930,9 +930,9 @@ def read_html(
930930
io: FilePathOrBuffer,
931931
match: Union[str, Pattern] = ".+",
932932
flavor: Optional[str] = None,
933-
header=None,
934-
index_col=None,
935-
skiprows=None,
933+
header: Union[int, Sequence[int], None] = None,
934+
index_col: Union[int, Sequence[int], None] = None,
935+
skiprows: Union[int, Sequence[int], slice, None] = None,
936936
attrs: Optional[Dict[str, str]] = None,
937937
parse_dates: Optional[bool] = False,
938938
thousands: str = ",",
@@ -967,14 +967,14 @@ def read_html(
967967
default of ``None`` tries to use ``lxml`` to parse and if that fails it
968968
falls back on ``bs4`` + ``html5lib``.
969969
970-
header : int or list-like or None, optional
970+
header : int or sequence of ints, optional
971971
The row (or list of rows for a :class:`~pandas.MultiIndex`) to use to
972972
make the columns headers.
973973
974-
index_col : int or list-like or None, optional
974+
index_col : int or sequence of ints, optional
975975
The column (or list of columns) to use to create the index.
976976
977-
skiprows : int or list-like or slice or None, optional
977+
skiprows : int, sequence of ints or slice, optional
978978
Number of rows to skip after parsing the column integer. 0-based. If a
979979
sequence of integers or a slice is given, will skip the rows indexed by
980980
that sequence. Note that a single element sequence means 'skip the nth

0 commit comments

Comments
 (0)