Skip to content

Commit 6946a76

Browse files
committed
TYP: Clean up deprecated typing imports
1 parent dbad6cf commit 6946a76

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

lib/matplotlib/_api/__init__.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
from collections.abc import Callable, Generator, Mapping, Sequence
2-
from typing import Any, Iterable, TypeVar, overload
1+
from collections.abc import Callable, Generator, Iterable, Mapping, Sequence
2+
from typing import Any, TypeVar, overload
33
from typing_extensions import Self # < Py 3.11
44

55
from numpy.typing import NDArray

lib/matplotlib/_docstring.pyi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
from typing import Any, Callable, TypeVar, overload
1+
from collections.abc import Callable
2+
from typing import Any, TypeVar, overload
23

34

45
_T = TypeVar('_T')

lib/matplotlib/figure.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
from collections.abc import Callable, Hashable, Iterable
1+
from collections.abc import Callable, Hashable, Iterable, Sequence
22
import os
3-
from typing import Any, IO, Literal, Sequence, TypeVar, overload
3+
from typing import Any, IO, Literal, TypeVar, overload
44

55
import numpy as np
66
from numpy.typing import ArrayLike

lib/matplotlib/tests/test_api.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
from __future__ import annotations
22

3+
from collections.abc import Callable
34
import re
45
import typing
5-
from typing import Any, Callable, TypeVar
6+
from typing import Any, TypeVar
67

78
import numpy as np
89
import pytest

0 commit comments

Comments
 (0)