8000 added typing_extensions.Self to _AxesBase.twinx by randolf-scholz · Pull Request #28625 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

added typing_extensions.Self to _AxesBase.twinx #28625

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Aug 1, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
1 change: 1 addition & 0 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ dependencies:
- python-dateutil>=2.1
- setuptools_scm
- wxpython
- typing-extensions>=4.0.0
# building documentation
- colorspacious
- graphviz
Expand Down
5 changes: 3 additions & 2 deletions lib/matplotlib/axes/_base.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ from cycler import Cycler
import numpy as np
from numpy.typing import ArrayLike
from typing import Any, Literal, TypeVar, overload
from typing_extensions import Self
from matplotlib.typing import ColorType

_T = TypeVar("_T", bound=Artist)
Expand Down Expand Up @@ -384,8 +385,8 @@ class _AxesBase(martist.Artist):
bbox_extra_artists: Sequence[Artist] | None = ...,
for_layout_only: bool = ...
) -> Bbox | None: ...
def twinx(self) -> _AxesBase: ...
def twiny(self) -> _AxesBase: ...
def twinx(self) -> Self: ...
def twiny(self) -> Self: ...
def get_shared_x_axes(self) -> cbook.GrouperView: ...
def get_shared_y_axes(self) -> cbook.GrouperView: ...
def label_outer(self, remove_inner_ticks: bool = ...) -> None: ...
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ dependencies = [
"pillow >= 8",
"pyparsing >= 2.3.1",
"python-dateutil >= 2.7",
"typing-extensions >= 4.0.0",
]
requires-python = ">=3.10"

Expand Down
Loading
0