Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b6eaadc

Browse files
authored
Update typing_extensions imports in third-party stubs (#11245)
1 parent 1b471a9 commit b6eaadc

488 files changed

Lines changed: 715 additions & 845 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

stubs/Deprecated/deprecated/classic.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from collections.abc import Callable
2-
from typing import Any, TypeVar, overload
3-
from typing_extensions import Literal, TypeAlias
2+
from typing import Any, Literal, TypeVar, overload
3+
from typing_extensions import TypeAlias
44

55
_F = TypeVar("_F", bound=Callable[..., Any])
66
_Actions: TypeAlias = Literal["default", "error", "ignore", "always", "module", "once"]

stubs/Deprecated/deprecated/sphinx.pyi

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from collections.abc import Callable
2-
from typing import Any, TypeVar
3-
from typing_extensions import Literal
2+
from typing import Any, Literal, TypeVar
43

54
from .classic import ClassicAdapter, _Actions
65

stubs/ExifRead/exifread/_types.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Stubs-only module with type aliases for ExifRead.
22

3-
from typing import Any, Protocol
4-
from typing_extensions import Literal, TypeAlias
3+
from typing import Any, Literal, Protocol
4+
from typing_extensions import TypeAlias
55

66
# The second item of the value tuple - if it exists - can be a variety of types,
77
# including a callable or another dict.

stubs/ExifRead/exifread/classes.pyi

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from logging import Logger
2-
from typing import Any
3-
from typing_extensions import Literal
2+
from typing import Any, Literal
43

54
from ._types import Reader, TagDict
65

stubs/Flask-Cors/flask_cors/core.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ from collections.abc import Iterable
22
from datetime import timedelta
33
from logging import Logger
44
from re import Pattern
5-
from typing import Any, TypeVar, overload
6-
from typing_extensions import TypeAlias, TypedDict
5+
from typing import Any, TypedDict, TypeVar, overload
6+
from typing_extensions import TypeAlias
77

88
import flask
99

stubs/Flask-SocketIO/flask_socketio/test_client.pyi

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from _typeshed import Incomplete
2-
from typing import Any
3-
from typing_extensions import TypedDict
2+
from typing import Any, TypedDict
43

54
from flask import Flask
65
from flask.testing import FlaskClient

stubs/JACK-Client/jack/__init__.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import sys
22
from _typeshed import Unused
33
from collections.abc import Callable, Generator, Iterable, Iterator, Sequence
4-
from typing import Any, NoReturn, overload
5-
from typing_extensions import Literal, Self
4+
from typing import Any, Literal, NoReturn, overload
5+
from typing_extensions import Self
66

77
import numpy
88
from _cffi_backend import _CDataBase

stubs/Markdown/markdown/core.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from collections.abc import Callable, Mapping, Sequence
2-
from typing import Any, ClassVar, Protocol
3-
from typing_extensions import Literal, Self
2+
from typing import Any, ClassVar, Literal, Protocol
3+
from typing_extensions import Self
44
from xml.etree.ElementTree import Element
55

66
from . import blockparser, inlinepatterns, postprocessors, preprocessors, treeprocessors

stubs/Markdown/markdown/extensions/toc.pyi

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from collections.abc import Iterator, MutableSet
22
from re import Pattern
3-
from typing import Any
4-
from typing_extensions import TypedDict
3+
from typing import Any, TypedDict
54
from xml.etree.ElementTree import Element
65

76
from markdown.core import Markdown

stubs/Markdown/markdown/util.pyi

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from collections.abc import Iterator
22
from re import Pattern
3-
from typing import Any, Generic, TypeVar, overload
4-
from typing_extensions import TypedDict
3+
from typing import Any, Generic, TypedDict, TypeVar, overload
54

65
from markdown.core import Markdown
76

0 commit comments

Comments
 (0)