Skip to content

Replace deprecated imports #30312

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 1 commit into from
Jul 15, 2025
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
2 changes: 1 addition & 1 deletion lib/matplotlib/_api/__init__.pyi
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from collections.abc import Callable, Generator, Iterable, Mapping, Sequence
from typing import Any, TypeVar, overload
from typing_extensions import Self # < Py 3.11
from typing import Self

from numpy.typing import NDArray

Expand Down
2 changes: 1 addition & 1 deletion lib/matplotlib/axis.pyi
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from collections.abc import Callable, Iterable, Sequence
import datetime
from typing import Any, Literal, overload
from typing_extensions import Self # < Py 3.11
from typing import Self

import numpy as np
from numpy.typing import ArrayLike
Expand Down
2 changes: 1 addition & 1 deletion lib/matplotlib/cbook.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ from typing import (
Generic,
IO,
Literal,
Sequence,
TypeVar,
overload,
)
from collections.abc import Sequence

_T = TypeVar("_T")

Expand Down
2 changes: 1 addition & 1 deletion lib/matplotlib/dviread.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ from enum import Enum
from collections.abc import Generator

from typing import NamedTuple
from typing_extensions import Self # < Py 3.11
from typing import Self

class _dvistate(Enum):
pre = ...
Expand Down
2 changes: 1 addition & 1 deletion lib/matplotlib/sankey.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ from matplotlib.axes import Axes

from collections.abc import Callable, Iterable
from typing import Any
from typing_extensions import Self # < Py 3.11
from typing import Self

import numpy as np

Expand Down
2 changes: 1 addition & 1 deletion lib/matplotlib/tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@


if typing.TYPE_CHECKING:
from typing_extensions import Self
from typing import Self

T = TypeVar('T')

Expand Down
3 changes: 2 additions & 1 deletion lib/matplotlib/typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"""
from collections.abc import Hashable, Sequence
import pathlib
from typing import Any, Callable, Literal, TypeAlias, TypeVar, Union
from typing import Any, Literal, TypeAlias, TypeVar, Union
from collections.abc import Callable

from . import path
from ._enums import JoinStyle, CapStyle
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ select = [
"E",
"F",
"W",
"UP035",
# The following error codes require the preview mode to be enabled.
"E201",
"E202",
Expand Down
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy