Update typing_extensions imports in third-party stubs (#11245)

This commit is contained in:
Sebastian Rittau
2024-01-05 15:40:13 +01:00
committed by GitHub
parent 1b471a9a0a
commit b6eaadcfe5
488 changed files with 715 additions and 845 deletions
+2 -2
View File
@@ -3,8 +3,8 @@ import os
from _typeshed import Incomplete, SupportsKeysAndGetItem
from collections.abc import Callable, Generator
from contextlib import contextmanager
from typing import IO, Any, NoReturn, TypeVar
from typing_extensions import Literal, Never, Self, TypedDict
from typing import IO, Any, Literal, NoReturn, TypedDict, TypeVar
from typing_extensions import Never, Self
import matplotlib as mpl
from matplotlib.artist import Artist
+1 -2
View File
@@ -1,6 +1,5 @@
from collections import UserString
from typing import Any
from typing_extensions import Literal
from typing import Any, Literal
from pandas import Series
+2 -2
View File
@@ -1,8 +1,8 @@
import os
from _typeshed import Incomplete
from collections.abc import Callable, Generator, Iterable, Mapping
from typing import IO, Any, TypeVar
from typing_extensions import Concatenate, Literal, ParamSpec, Self, TypeAlias, deprecated
from typing import IO, Any, Literal, TypeVar
from typing_extensions import Concatenate, ParamSpec, Self, TypeAlias, deprecated
import numpy as np
from matplotlib.artist import Artist
+1 -2
View File
@@ -1,7 +1,6 @@
from _typeshed import Incomplete
from collections.abc import Callable, Iterable
from typing import Any
from typing_extensions import Literal
from typing import Any, Literal
from matplotlib.axes import Axes
from matplotlib.colors import Normalize
+2 -2
View File
@@ -1,6 +1,6 @@
from collections.abc import Iterable
from typing import Any, Protocol, TypeVar
from typing_extensions import Literal, TypeAlias, deprecated
from typing import Any, Literal, Protocol, TypeVar
from typing_extensions import TypeAlias, deprecated
from matplotlib.axes import Axes
from matplotlib.colors import Colormap, Normalize
+1 -1
View File
@@ -1,4 +1,4 @@
from typing_extensions import Literal
from typing import Literal
__version__: str
__version_info__: tuple[int, int, int]
+1 -2
View File
@@ -1,7 +1,6 @@
from _typeshed import Incomplete, Unused
from collections.abc import Callable, Iterable, Iterator, Mapping, MutableSequence
from typing import Any, ClassVar, NamedTuple, TypeVar, overload
from typing_extensions import SupportsIndex
from typing import Any, ClassVar, NamedTuple, SupportsIndex, TypeVar, overload
_S = TypeVar("_S", bound=MutableSequence[str])
+2 -2
View File
@@ -1,6 +1,6 @@
from collections.abc import Callable
from typing import Any, Protocol
from typing_extensions import Literal, TypeAlias
from typing import Any, Literal, Protocol
from typing_extensions import TypeAlias
import numpy as np
from numpy.typing import ArrayLike, NDArray
+2 -1
View File
@@ -1,6 +1,7 @@
from _typeshed import Incomplete
from collections.abc import Hashable, Iterable, Mapping, Sequence
from typing_extensions import Literal, Self, TypeAlias
from typing import Literal
from typing_extensions import Self, TypeAlias
import numpy as np
from matplotlib.axes import Axes
+2 -2
View File
@@ -1,6 +1,6 @@
from collections.abc import Iterable, Sequence
from typing import TypeVar, overload
from typing_extensions import Literal, Self, TypeAlias
from typing import Literal, TypeVar, overload
from typing_extensions import Self, TypeAlias
from matplotlib.colors import Colormap, LinearSegmentedColormap, ListedColormap
from matplotlib.typing import ColorType
+2 -2
View File
@@ -1,7 +1,7 @@
from _typeshed import Unused
from collections.abc import Callable, Sequence
from typing import Any, TypeVar
from typing_extensions import Literal, deprecated
from typing import Any, Literal, TypeVar
from typing_extensions import deprecated
from matplotlib.typing import ColorType
+2 -2
View File
@@ -1,7 +1,7 @@
from _typeshed import Incomplete
from collections.abc import Callable, Iterable
from typing import Any, overload
from typing_extensions import Literal, TypeAlias
from typing import Any, Literal, overload
from typing_extensions import TypeAlias
import pandas as pd
from matplotlib.axes import Axes
+2 -2
View File
@@ -1,7 +1,7 @@
from _typeshed import Incomplete
from collections.abc import Iterable
from typing import Any
from typing_extensions import Literal, TypeAlias
from typing import Any, Literal
from typing_extensions import TypeAlias
from matplotlib.axes import Axes
from matplotlib.colors import Colormap
+2 -2
View File
@@ -1,8 +1,8 @@
import datetime as dt
from _typeshed import Incomplete, SupportsGetItem
from collections.abc import Callable, Iterable, Mapping, Sequence
from typing import Any, TypeVar, overload
from typing_extensions import Literal, SupportsIndex, TypeAlias, deprecated
from typing import Any, Literal, SupportsIndex, TypeVar, overload
from typing_extensions import TypeAlias, deprecated
import numpy as np
import pandas as pd
+1 -2
View File
@@ -1,5 +1,4 @@
from typing import overload
from typing_extensions import Literal
from typing import Literal, overload
from matplotlib.colors import LinearSegmentedColormap