Skip to content

Commit 4168b12

Browse files
authored
set defaults for Literal[False], Literal[True], and None (#1455)
1 parent fe7e8b4 commit 4168b12

File tree

23 files changed

+170
-170
lines changed

23 files changed

+170
-170
lines changed

pandas-stubs/_config/config.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def reset_option(pat: str) -> None: ...
1515
@overload
1616
def describe_option(pat: str, _print_desc: Literal[False]) -> str: ...
1717
@overload
18-
def describe_option(pat: str, _print_desc: Literal[True] = ...) -> None: ...
18+
def describe_option(pat: str, _print_desc: Literal[True] = True) -> None: ...
1919

2020
class DictWrapper:
2121
def __init__(self, d: dict[str, Any], prefix: str = ...) -> None: ...

pandas-stubs/_testing/__init__.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def assert_series_equal(
121121
obj: str = ...,
122122
*,
123123
check_index: Literal[False],
124-
check_like: Literal[False] = ...,
124+
check_like: Literal[False] = False,
125125
) -> None: ...
126126
@overload
127127
def assert_series_equal(
@@ -141,7 +141,7 @@ def assert_series_equal(
141141
atol: float = ...,
142142
obj: str = ...,
143143
*,
144-
check_index: Literal[True] = ...,
144+
check_index: Literal[True] = True,
145145
check_like: bool = ...,
146146
) -> None: ...
147147
def assert_frame_equal(

pandas-stubs/core/base.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ class IndexOpsMixin(OpsMixin, Generic[S1, GenericT_co]):
127127
@overload
128128
def value_counts(
129129
self,
130-
normalize: Literal[False] = ...,
130+
normalize: Literal[False] = False,
131131
sort: bool = ...,
132132
ascending: bool = ...,
133133
bins: int | None = ...,

0 commit comments

Comments
 (0)