Skip to content

Commit 29d346d

Browse files
matheusfelipeogmroeschke
authored andcommitted
TYP/DOC: fix flavor param with incorrect type hint in read_html (pandas-dev#55076)
resolve pandas-dev#55059
1 parent 4815e03 commit 29d346d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

pandas/io/html.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -1033,7 +1033,7 @@ def read_html(
10331033
io: FilePath | ReadBuffer[str],
10341034
*,
10351035
match: str | Pattern = ".+",
1036-
flavor: str | None = None,
1036+
flavor: str | Sequence[str] | None = None,
10371037
header: int | Sequence[int] | None = None,
10381038
index_col: int | Sequence[int] | None = None,
10391039
skiprows: int | Sequence[int] | slice | None = None,
@@ -1074,11 +1074,11 @@ def read_html(
10741074
This value is converted to a regular expression so that there is
10751075
consistent behavior between Beautiful Soup and lxml.
10761076
1077-
flavor : str, optional
1078-
The parsing engine to use. 'bs4' and 'html5lib' are synonymous with
1079-
each other, they are both there for backwards compatibility. The
1080-
default of ``None`` tries to use ``lxml`` to parse and if that fails it
1081-
falls back on ``bs4`` + ``html5lib``.
1077+
flavor : str or list-like, optional
1078+
The parsing engine (or list of parsing engines) to use. 'bs4' and
1079+
'html5lib' are synonymous with each other, they are both there for
1080+
backwards compatibility. The default of ``None`` tries to use ``lxml``
1081+
to parse and if that fails it falls back on ``bs4`` + ``html5lib``.
10821082
10831083
header : int or list-like, optional
10841084
The row (or list of rows for a :class:`~pandas.MultiIndex`) to use to

0 commit comments

Comments
 (0)