Remove remaining bare Incompletes (#11768)

Enable Y065
This commit is contained in:
Sebastian Rittau
2024-04-16 06:26:14 -07:00
committed by GitHub
parent 7c8e82fe48
commit 7d56cd9a6c
33 changed files with 110 additions and 100 deletions
+2 -2
View File
@@ -23,10 +23,10 @@ class GroupBy:
self,
data: DataFrame,
func: _AggFuncTypeFrame = ...,
*args: Incomplete,
*args,
engine: str | None = None,
engine_kwargs: dict[str, bool] | None = None,
**kwargs: Incomplete,
**kwargs,
) -> DataFrame: ...
def apply(
self, data: DataFrame, func: Callable[Concatenate[DataFrame, _P], DataFrame], *args: _P.args, **kwargs: _P.kwargs
+1 -1
View File
@@ -53,7 +53,7 @@ class ThemeConfig(mpl.RcParams):
THEME_GROUPS: list[str]
def __init__(self) -> None: ...
def reset(self) -> None: ...
def update(self, other: SupportsKeysAndGetItem[Incomplete, Incomplete] | None = None, /, **kwds: Incomplete) -> None: ... # type: ignore[override]
def update(self, other: SupportsKeysAndGetItem[Incomplete, Incomplete] | None = None, /, **kwds) -> None: ... # type: ignore[override]
class DisplayConfig(TypedDict):
format: Literal["png", "svg"]
+3 -3
View File
@@ -93,8 +93,8 @@ class PseudoAxis:
def set_major_formatter(self, formatter: Formatter) -> None: ...
def set_minor_locator(self, locator: Locator) -> None: ...
def set_minor_formatter(self, formatter: Formatter) -> None: ...
def set_units(self, units: Incomplete) -> None: ...
def update_units(self, x: Incomplete) -> None: ...
def convert_units(self, x: Incomplete) -> Incomplete: ...
def set_units(self, units) -> None: ...
def update_units(self, x) -> None: ...
def convert_units(self, x): ...
def get_scale(self) -> ScaleBase: ...
def get_majorticklocs(self) -> NDArray[Incomplete]: ...
+1 -1
View File
@@ -12,7 +12,7 @@ from pandas import DataFrame, Index, Series, Timedelta, Timestamp
class SupportsDataFrame(Protocol):
# `__dataframe__` should return pandas.core.interchange.dataframe_protocol.DataFrame
# but this class needs to be defined as a Protocol, not as an ABC.
def __dataframe__(self, nan_as_null: bool = ..., allow_copy: bool = ...) -> Incomplete: ...
def __dataframe__(self, nan_as_null: bool = ..., allow_copy: bool = ...): ...
ColumnName: TypeAlias = str | bytes | date | datetime | timedelta | bool | complex | Timestamp | Timedelta
Vector: TypeAlias = Series[Any] | Index[Any] | ndarray[Any, Any]
+1 -1
View File
@@ -64,7 +64,7 @@ class _BaseGrid:
path_effects: list[AbstractPathEffect] = ...,
picker: bool | float | Callable[[Artist, MouseEvent], tuple[bool, dict[Any, Any]]] | None = ...,
position: Bbox | tuple[float, float, float, float] = ...,
prop_cycle: Incomplete = ..., # TODO: use cycler.Cycler when cycler gets typed
prop_cycle=..., # TODO: use cycler.Cycler when cycler gets typed
rasterization_zorder: float | None = ...,
rasterized: bool = ...,
sketch_params: float | None = ...,
+12 -13
View File
@@ -1,4 +1,3 @@
from _typeshed import Incomplete
from collections.abc import Callable, Iterable
from typing import Any, Literal
@@ -71,9 +70,9 @@ def violinplot(
log_scale: _LogScale | None = None,
native_scale: bool = False,
legend: _Legend = "auto",
scale: Incomplete = ..., # deprecated
scale_hue: Incomplete = ..., # deprecated
bw: Incomplete = ..., # deprecated
scale=..., # deprecated
scale_hue=..., # deprecated
bw=..., # deprecated
inner_kws: dict[str, Any] | None = None,
ax: Axes | None = None,
**kwargs: Any,
@@ -106,7 +105,7 @@ def boxenplot(
native_scale: bool = False,
formatter: Callable[[Any], str] | None = None,
legend: _Legend = "auto",
scale: Incomplete = ..., # deprecated
scale=..., # deprecated
box_kws: dict[str, Any] | None = None,
flier_kws: dict[str, Any] | None = None,
line_kws: dict[str, Any] | None = None,
@@ -190,9 +189,9 @@ def barplot(
legend: _Legend = "auto",
capsize: float = 0,
err_kws: dict[str, Any] | None = None,
ci: Incomplete = ..., # deprecated
errcolor: Incomplete = ..., # deprecated
errwidth: Incomplete = ..., # deprecated
ci=..., # deprecated
errcolor=..., # deprecated
errwidth=..., # deprecated
ax: Axes | None = None,
**kwargs: Any,
) -> Axes: ...
@@ -223,10 +222,10 @@ def pointplot(
formatter: Callable[[Any], str] | None = None,
legend: _Legend = "auto",
err_kws: dict[str, Any] | None = None,
ci: Incomplete = ..., # deprecated
errwidth: Incomplete = ..., # deprecated
join: Incomplete = ..., # deprecated
scale: Incomplete = ..., # deprecated
ci=..., # deprecated
errwidth=..., # deprecated
join=..., # deprecated
scale=..., # deprecated
ax: Axes | None = None,
**kwargs: Any,
) -> Axes: ...
@@ -290,6 +289,6 @@ def catplot(
sharey: bool = True,
margin_titles: bool = False,
facet_kws: dict[str, Any] | None = None,
ci: Incomplete = ..., # deprecated
ci=..., # deprecated
**kwargs: Any,
) -> FacetGrid: ...
+5 -7
View File
@@ -40,7 +40,7 @@ def heatmap(
yticklabels: Literal["auto"] | bool | int | Sequence[str] = "auto",
mask: NDArray[np.bool_] | DataFrame | None = None,
ax: Axes | None = None,
**kwargs: Incomplete,
**kwargs,
) -> Axes: ...
class _DendrogramPlotter:
@@ -150,10 +150,8 @@ class ClusterGrid(Grid):
col_linkage: NDArray[Incomplete] | None,
tree_kws: dict[str, Incomplete] | None,
) -> None: ...
def plot_colors(self, xind: _ArrayLikeInt_co, yind: _ArrayLikeInt_co, **kws: Incomplete) -> None: ...
def plot_matrix(
self, colorbar_kws: dict[str, Incomplete], xind: _ArrayLikeInt_co, yind: _ArrayLikeInt_co, **kws: Incomplete
) -> None: ...
def plot_colors(self, xind: _ArrayLikeInt_co, yind: _ArrayLikeInt_co, **kws) -> None: ...
def plot_matrix(self, colorbar_kws: dict[str, Incomplete], xind: _ArrayLikeInt_co, yind: _ArrayLikeInt_co, **kws) -> None: ...
def plot(
self,
metric: str,
@@ -164,7 +162,7 @@ class ClusterGrid(Grid):
row_linkage: NDArray[Incomplete] | None,
col_linkage: NDArray[Incomplete] | None,
tree_kws: dict[str, Incomplete] | None,
**kws: Incomplete,
**kws,
) -> Self: ...
def clustermap(
@@ -194,5 +192,5 @@ def clustermap(
colors_ratio: float | tuple[float, float] = 0.03,
cbar_pos: tuple[float, float, float, float] | None = (0.02, 0.8, 0.05, 0.18),
tree_kws: dict[str, Incomplete] | None = None,
**kwargs: Incomplete,
**kwargs,
) -> ClusterGrid: ...
+1 -3
View File
@@ -102,9 +102,7 @@ def get_data_home(data_home: str | None = None) -> str: ...
def load_dataset(name: str, cache: bool = True, data_home: str | None = None, **kws: Any) -> DataFrame: ...
def axis_ticklabels_overlap(labels: Iterable[Text]) -> bool: ...
def axes_ticklabels_overlap(ax: Axes) -> tuple[bool, bool]: ...
def locator_to_legend_entries(
locator: Locator, limits: Iterable[float], dtype: Incomplete
) -> tuple[list[Incomplete], list[str]]: ...
def locator_to_legend_entries(locator: Locator, limits: Iterable[float], dtype) -> tuple[list[Incomplete], list[str]]: ...
@overload
def relative_luminance(color: ColorType) -> float: ... # type: ignore[overload-overlap]
@overload