Skip to content

Commit c6b9c26

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 4405812 commit c6b9c26

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

pandas/core/groupby/groupby.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4325,7 +4325,7 @@ def nth(self) -> GroupByNthSelector:
43254325
def _nth(
43264326
self,
43274327
n: PositionalIndexer | tuple,
4328-
dropna: Literal["any", "all", None] = None,
4328+
dropna: Literal["any", "all"] | None = None,
43294329
) -> NDFrameT:
43304330
if not dropna:
43314331
mask = self._make_mask_from_positional_indexer(n)

pandas/core/groupby/indexing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ def __init__(self, groupby_object: groupby.GroupBy) -> None:
296296
def __call__(
297297
self,
298298
n: PositionalIndexer | tuple,
299-
dropna: Literal["any", "all", None] = None,
299+
dropna: Literal["any", "all"] | None = None,
300300
) -> DataFrame | Series:
301301
return self.groupby_object._nth(n, dropna)
302302

pandas/io/html.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ def __init__(
220220
attrs: dict[str, str] | None,
221221
encoding: str,
222222
displayed_only: bool,
223-
extract_links: Literal[None, "header", "footer", "body", "all"],
223+
extract_links: Literal["header", "footer", "body", "all"] | None,
224224
storage_options: StorageOptions = None,
225225
) -> None:
226226
self.io = io
@@ -1042,7 +1042,7 @@ def read_html(
10421042
na_values: Iterable[object] | None = None,
10431043
keep_default_na: bool = True,
10441044
displayed_only: bool = True,
1045-
extract_links: Literal[None, "header", "footer", "body", "all"] = None,
1045+
extract_links: Literal["header", "footer", "body", "all"] | None = None,
10461046
dtype_backend: DtypeBackend | lib.NoDefault = lib.no_default,
10471047
storage_options: StorageOptions = None,
10481048
) -> list[DataFrame]:

0 commit comments

Comments
 (0)