Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork8.1k
Add type stubs for Axes3D and improve type hints in _AxesBase#30713
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:main
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
e59988989e5545e7e3d421852fc6563fbb25e802f5a3c0546fe09b5aFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -41,6 +41,60 @@ class _axis_method_wrapper: | ||
| ) -> None: ... | ||
| def __set_name__(self, owner: Any, name: str) -> None: ... | ||
| class _TransformedBoundsLocator: | ||
| _bounds: Sequence[float] | ||
| _transform: Transform | ||
| def __init__(self, bounds: Sequence[float], transform: Transform) -> None: ... | ||
| def __call__(self, ax: Any, renderer: Any) -> Bbox: ... | ||
Comment on lines +48 to +50 Member There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Don't need the blank lines between methods in type stubs. | ||
| def _process_plot_format( | ||
| fmt: str, | ||
| *, | ||
| ambiguous_fmt_datakey: bool = False | ||
| ) -> tuple[str | None, str | None, ColorType | None]: ... | ||
| class _process_plot_var_args: | ||
| output: str | ||
| def __init__(self, output: str = ...) -> None: ... | ||
| def set_prop_cycle(self, cycler: Any) -> None: ... | ||
| def __call__( | ||
| self, | ||
| axes: Any, | ||
| *args: Any, | ||
| data: Any | None = ..., | ||
| return_kwargs: bool = ..., | ||
| **kwargs: Any, | ||
| ) -> Iterator[Any]: ... | ||
| def get_next_color(self) -> Any: ... | ||
| def _getdefaults(self, kw: dict[str, Any], ignore: Any = ...) -> dict[str, Any]: ... | ||
| def _setdefaults(self, defaults: dict[str, Any], kw: dict[str, Any]) -> None: ... | ||
| def _make_line(self, axes: Any, x: Any, y: Any, kw: dict[str, Any], kwargs: dict[str, Any]) -> tuple[Any, dict[str, Any]]: ... | ||
| def _make_coordinates(self, axes: Any, x: Any, y: Any, kw: dict[str, Any], kwargs: dict[str, Any]) -> tuple[Any, dict[str, Any]]: ... | ||
| def _make_polygon(self, axes: Any, x: Any, y: Any, kw: dict[str, Any], kwargs: dict[str, Any]) -> tuple[Any, dict[str, Any]]: ... | ||
| def _plot_args( | ||
| self, | ||
| axes: Any, | ||
| tup: tuple[Any, ...], | ||
| kwargs: dict[str, Any], | ||
| *, | ||
| return_kwargs: bool = ..., | ||
| ambiguous_fmt_datakey: bool = ..., | ||
| ) -> Iterator[Any]: ... | ||
| class _AxesBase(martist.Artist): | ||
| name: str | ||
| patch: Patch | ||
| @@ -64,6 +118,9 @@ class _AxesBase(martist.Artist): | ||
| title: Text | ||
| _axis_map: dict[str, Axis] | ||
| _projection_init: Any | ||
| _axis_names: tuple[Literal['x'], Literal['y']] | tuple[Literal['x'], Literal['y'], Literal['z']] | ||
Member There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. This type is definitely not literals. Member There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. @QuLogic not sure. I think right now this is true at least within the core library. At least PolarAxes still has | ||
| _shared_axes: dict[str, cbook.Grouper] | ||
| _twinned_axes: list[cbook.Grouper] | ||
| def __init__( | ||
| self, | ||
| @@ -462,3 +519,10 @@ class _AxesBase(martist.Artist): | ||
| ) -> list[Text]: ... | ||
| def xaxis_date(self, tz: str | datetime.tzinfo | None = ...) -> None: ... | ||
| def yaxis_date(self, tz: str | datetime.tzinfo | None = ...) -> None: ... | ||
| def _draw_rasterized( | ||
| figure: Figure, | ||
| artists: list[Artist], | ||
| renderer: RendererBase, | ||
| ) -> None: ... | ||
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.