Backport PR #26927 on branch v3.8.x ([TYP] Remove some stubtest allowlist entries) by meeseeksmachine · Pull Request #26945 · matplotlib/matplotlib · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 0 additions & 18 deletions ci/mypy-stubtest-allowlist.txt
8 changes: 6 additions & 2 deletions lib/matplotlib/offsetbox.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -287,11 +287,15 @@ class AnnotationBbox(martist.Artist, mtext._AnnotationBase):
class DraggableBase:
ref_artist: martist.Artist
got_artist: bool
canvas: FigureCanvasBase
cids: list[int]
mouse_x: int
mouse_y: int
background: Any

@property
def canvas(self) -> FigureCanvasBase: ...
@property
def cids(self) -> list[int]: ...

def __init__(self, ref_artist: martist.Artist, use_blit: bool = ...) -> None: ...
def on_motion(self, evt: Event) -> None: ...
def on_pick(self, evt: Event) -> None: ...
Expand Down
9 changes: 6 additions & 3 deletions lib/matplotlib/rcsetup.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,9 @@ def validate_fontstretch(
def validate_font_properties(s: Any) -> dict[str, Any]: ...
def validate_whiskers(s: Any) -> list[float] | float: ...
def validate_ps_distiller(s: Any) -> None | Literal["ghostscript", "xpdf"]: ...
def validate_fillstyle(
s: Any,
) -> Literal["full", "left", "right", "bottom", "top", "none"]: ...

validate_fillstyle: ValidateInStrings

def validate_fillstylelist(
s: Any,
) -> list[Literal["full", "left", "right", "bottom", "top", "none"]]: ...
Expand All @@ -152,3 +152,6 @@ def validate_hist_bins(
) -> Literal["auto", "sturges", "fd", "doane", "scott", "rice", "sqrt"] | int | list[
float
]: ...

# At runtime is added in __init__.py
defaultParams: dict[str, Any]
20 changes: 9 additions & 11 deletions lib/matplotlib/transforms.pyi