Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6946a76

Browse filesBrowse files
committed
TYP: Clean up deprecated typing imports
1 parent dbad6cf commit 6946a76
Copy full SHA for 6946a76

File tree

Expand file treeCollapse file tree

4 files changed

+8
-6
lines changed
Filter options
Expand file treeCollapse file tree

4 files changed

+8
-6
lines changed

‎lib/matplotlib/_api/__init__.pyi

Copy file name to clipboardExpand all lines: lib/matplotlib/_api/__init__.pyi
+2-2Lines 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

Copy file name to clipboardExpand all lines: lib/matplotlib/_docstring.pyi
+2-1Lines 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

Copy file name to clipboardExpand all lines: lib/matplotlib/figure.pyi
+2-2Lines 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

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/test_api.py
+2-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.