Skip to content

Commit 4a859fd

Browse files
committed
fix syntax errors
1 parent 885094b commit 4a859fd

Some content is hidden

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

68 files changed

+68
-68
lines changed

stdlib/_codecs.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import codecs
22
import sys
3-
from typing import Any, Callable, Dict, Tuple,
3+
from typing import Any, Callable, Dict, Tuple
44

55
# This type is not exposed; it is defined in unicodeobject.c
66
class _EncodingMap:

stdlib/_csv.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import Any, Iterable, Iterator, List, Protocol, Type,
1+
from typing import Any, Iterable, Iterator, List, Protocol, Type
22

33
QUOTE_ALL: int
44
QUOTE_MINIMAL: int

stdlib/_typeshed/__init__.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import ctypes
77
import mmap
88
import sys
99
from os import PathLike
10-
from typing import AbstractSet, Any, Awaitable, Container, Iterable, Protocol, TypeVar,
10+
from typing import AbstractSet, Any, Awaitable, Container, Iterable, Protocol, TypeVar
1111
from typing_extensions import Literal, final
1212

1313
_KT = TypeVar("_KT")

stdlib/asyncio/base_subprocess.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import subprocess
22
from collections import deque
3-
from typing import IO, Any, Callable, Sequence, Tuple,
3+
from typing import IO, Any, Callable, Sequence, Tuple
44

55
from . import events, futures, protocols, transports
66

stdlib/asyncio/streams.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import sys
22
from _typeshed import StrPath
3-
from typing import Any, AsyncIterator, Awaitable, Callable, Iterable,
3+
from typing import Any, AsyncIterator, Awaitable, Callable, Iterable
44

55
from . import events, protocols, transports
66
from .base_events import Server

stdlib/asyncio/subprocess.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import subprocess
22
import sys
33
from _typeshed import StrOrBytesPath
44
from asyncio import events, protocols, streams, transports
5-
from typing import IO, Any, Callable,
5+
from typing import IO, Any, Callable
66
from typing_extensions import Literal
77

88
if sys.version_info >= (3, 8):

stdlib/binhex.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import IO, Any, Tuple,
1+
from typing import IO, Any, Tuple
22

33
class Error(Exception): ...
44

stdlib/cmath.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import sys
2-
from typing import SupportsComplex, SupportsFloat,
2+
from typing import SupportsComplex, SupportsFloat
33

44
if sys.version_info >= (3, 8):
55
from typing import SupportsIndex

stdlib/copyreg.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import Any, Callable, Hashable, SupportsInt, Tuple, TypeVar,
1+
from typing import Any, Callable, Hashable, SupportsInt, Tuple, TypeVar
22

33
_TypeT = TypeVar("_TypeT", bound=type)
44
_Reduce = Tuple[Callable[..., _TypeT], Tuple[Any, ...]] | Tuple[Callable[..., _TypeT], Tuple[Any, ...], Any | None]

stdlib/dbm/__init__.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from _typeshed import Self
22
from types import TracebackType
3-
from typing import Iterator, MutableMapping, Type,
3+
from typing import Iterator, MutableMapping, Type
44
from typing_extensions import Literal
55

66
_KeyType = str | bytes

stdlib/dbm/dumb.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from _typeshed import Self
22
from types import TracebackType
3-
from typing import Iterator, MutableMapping, Type,
3+
from typing import Iterator, MutableMapping, Type
44

55
_KeyType = str | bytes
66
_ValueType = str | bytes

stdlib/dis.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ from opcode import (
1616
opname as opname,
1717
stack_effect as stack_effect,
1818
)
19-
from typing import IO, Any, Callable, Iterator, NamedTuple,
19+
from typing import IO, Any, Callable, Iterator, NamedTuple
2020

2121
# Strictly this should not have to include Callable, but mypy doesn't use FunctionType
2222
# for functions (python/mypy#3171)

stdlib/distutils/ccompiler.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import Any, Callable, Tuple,
1+
from typing import Any, Callable, Tuple
22

33
_Macro = Tuple[str] | Tuple[str, str | None]
44

stdlib/email/_header_value_parser.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import sys
22
from email.errors import HeaderParseError, MessageDefect
33
from email.policy import Policy
4-
from typing import Any, Iterable, Iterator, List, Pattern, Type, TypeVar,
4+
from typing import Any, Iterable, Iterator, List, Pattern, Type, TypeVar
55
from typing_extensions import Final
66

77
_T = TypeVar("_T")

stdlib/email/message.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ from email.charset import Charset
22
from email.contentmanager import ContentManager
33
from email.errors import MessageDefect
44
from email.policy import Policy
5-
from typing import Any, Generator, Iterator, List, Sequence, Tuple, TypeVar,
5+
from typing import Any, Generator, Iterator, List, Sequence, Tuple, TypeVar
66

77
_T = TypeVar("_T")
88

stdlib/email/mime/application.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from email.mime.nonmultipart import MIMENonMultipart
22
from email.policy import Policy
3-
from typing import Callable, Tuple,
3+
from typing import Callable, Tuple
44

55
_ParamsType = str | None | Tuple[str, str | None, str]
66

stdlib/email/mime/audio.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from email.mime.nonmultipart import MIMENonMultipart
22
from email.policy import Policy
3-
from typing import Callable, Tuple,
3+
from typing import Callable, Tuple
44

55
_ParamsType = str | None | Tuple[str, str | None, str]
66

stdlib/email/mime/base.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import email.message
22
from email.policy import Policy
3-
from typing import Tuple,
3+
from typing import Tuple
44

55
_ParamsType = str | None | Tuple[str, str | None, str]
66

stdlib/email/mime/image.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from email.mime.nonmultipart import MIMENonMultipart
22
from email.policy import Policy
3-
from typing import Callable, Tuple,
3+
from typing import Callable, Tuple
44

55
_ParamsType = str | None | Tuple[str, str | None, str]
66

stdlib/email/mime/multipart.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from email.message import Message
22
from email.mime.base import MIMEBase
33
from email.policy import Policy
4-
from typing import Sequence, Tuple,
4+
from typing import Sequence, Tuple
55

66
_ParamsType = str | None | Tuple[str, str | None, str]
77

stdlib/imaplib.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ from _typeshed import Self
55
from socket import socket as _socket
66
from ssl import SSLContext, SSLSocket
77
from types import TracebackType
8-
from typing import IO, Any, Callable, List, Pattern, Tuple, Type,
8+
from typing import IO, Any, Callable, List, Pattern, Tuple, Type
99
from typing_extensions import Literal
1010

1111
# TODO: Commands should use their actual return types, not this type alias.

stdlib/importlib/resources.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ if sys.version_info >= (3, 7):
77
from contextlib import AbstractContextManager
88
from pathlib import Path
99
from types import ModuleType
10-
from typing import BinaryIO, Iterator, TextIO,
10+
from typing import BinaryIO, Iterator, TextIO
1111

1212
Package = str | ModuleType
1313
Resource = str | os.PathLike[Any]

stdlib/inspect.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ from types import (
2323
if sys.version_info >= (3, 7):
2424
from types import ClassMethodDescriptorType, WrapperDescriptorType, MemberDescriptorType, MethodDescriptorType
2525

26-
from typing import Any, ClassVar, NamedTuple, Protocol, Tuple, Type, TypeVar,
26+
from typing import Any, ClassVar, NamedTuple, Protocol, Tuple, Type, TypeVar
2727
from typing_extensions import Literal, TypeGuard
2828

2929
#

stdlib/lib2to3/pytree.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from lib2to3.pgen2.grammar import Grammar
2-
from typing import Any, Callable, Dict, Iterator, List, Tuple, TypeVar,
2+
from typing import Any, Callable, Dict, Iterator, List, Tuple, TypeVar
33

44
_P = TypeVar("_P")
55
_NL = Node | Leaf

stdlib/mailcap.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import Dict, Mapping, Sequence,
1+
from typing import Dict, Mapping, Sequence
22

33
_Cap = Dict[str, str | int]
44

stdlib/multiprocessing/connection.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import socket
22
import sys
33
import types
44
from _typeshed import Self
5-
from typing import Any, Iterable, Tuple, Type,
5+
from typing import Any, Iterable, Tuple, Type
66

77
if sys.version_info >= (3, 8):
88
from typing import SupportsIndex

stdlib/multiprocessing/dummy/connection.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from _typeshed import Self
22
from queue import Queue
33
from types import TracebackType
4-
from typing import Any, Tuple, Type,
4+
from typing import Any, Tuple, Type
55

66
families: list[None]
77

stdlib/multiprocessing/synchronize.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import sys
22
import threading
33
from contextlib import AbstractContextManager
44
from multiprocessing.context import BaseContext
5-
from typing import Any, Callable,
5+
from typing import Any, Callable
66

77
_LockLike = Lock | RLock
88

stdlib/nntplib.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import socket
33
import ssl
44
import sys
55
from _typeshed import Self
6-
from typing import IO, Any, Iterable, NamedTuple, Tuple,
6+
from typing import IO, Any, Iterable, NamedTuple, Tuple
77

88
_File = IO[bytes] | bytes | str | None
99

stdlib/pickle.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import sys
2-
from typing import Any, Callable, ClassVar, Iterable, Iterator, Mapping, Protocol, Tuple, Type,
2+
from typing import Any, Callable, ClassVar, Iterable, Iterator, Mapping, Protocol, Tuple, Type
33
from typing_extensions import final
44

55
HIGHEST_PROTOCOL: int

stdlib/signal.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import sys
22
from enum import IntEnum
33
from types import FrameType
4-
from typing import Any, Callable, Iterable, Tuple,
4+
from typing import Any, Callable, Iterable, Tuple
55

66
NSIG: int
77

stdlib/socketserver.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import sys
22
import types
33
from _typeshed import Self
44
from socket import socket as _socket
5-
from typing import Any, BinaryIO, Callable, ClassVar, Tuple, Type, TypeVar,
5+
from typing import Any, BinaryIO, Callable, ClassVar, Tuple, Type, TypeVar
66

77
_T = TypeVar("_T")
88
_RequestType = _socket | Tuple[bytes, _socket]

stdlib/statistics.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import sys
22
from _typeshed import SupportsRichComparisonT
33
from decimal import Decimal
44
from fractions import Fraction
5-
from typing import Any, Hashable, Iterable, NamedTuple, Sequence, SupportsFloat, Type, TypeVar,
5+
from typing import Any, Hashable, Iterable, NamedTuple, Sequence, SupportsFloat, Type, TypeVar
66

77
_T = TypeVar("_T")
88
# Most functions in this module accept homogeneous collections of one of these types

stdlib/sunau.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import sys
22
from _typeshed import Self
3-
from typing import IO, Any, NamedTuple, NoReturn,
3+
from typing import IO, Any, NamedTuple, NoReturn
44

55
_File = str | IO[bytes]
66

stdlib/termios.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from _typeshed import FileDescriptorLike
2-
from typing import Any, List,
2+
from typing import Any, List
33

44
_Attr = List[int | List[bytes | int]]
55

stdlib/timeit.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import IO, Any, Callable, Sequence,
1+
from typing import IO, Any, Callable, Sequence
22

33
_Timer = Callable[[], float]
44
_Stmt = str | Callable[[], Any]

stdlib/tokenize.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import sys
22
from _typeshed import StrOrBytesPath
33
from builtins import open as _builtin_open
44
from token import * # noqa: F403
5-
from typing import Any, Callable, Generator, Iterable, NamedTuple, Pattern, Sequence, TextIO, Tuple,
5+
from typing import Any, Callable, Generator, Iterable, NamedTuple, Pattern, Sequence, TextIO, Tuple
66

77
if sys.version_info < (3, 7):
88
COMMENT: int

stdlib/tty.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import IO,
1+
from typing import IO
22

33
_FD = int | IO[str]
44

stdlib/unittest/result.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import unittest.case
22
from types import TracebackType
3-
from typing import Any, Callable, TextIO, Tuple, Type, TypeVar,
3+
from typing import Any, Callable, TextIO, Tuple, Type, TypeVar
44

55
_SysExcInfoType = Tuple[Type[BaseException], BaseException, TracebackType] | Tuple[None, None, None]
66

stdlib/unittest/suite.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import unittest.case
22
import unittest.result
3-
from typing import Iterable, Iterator,
3+
from typing import Iterable, Iterator
44

55
_TestType = unittest.case.TestCase | TestSuite
66

stdlib/uu.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import sys
2-
from typing import BinaryIO,
2+
from typing import BinaryIO
33

44
_File = str | BinaryIO
55

stdlib/wave.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import sys
22
from _typeshed import Self
3-
from typing import IO, Any, BinaryIO, NamedTuple, NoReturn,
3+
from typing import IO, Any, BinaryIO, NamedTuple, NoReturn
44

55
_File = str | IO[bytes]
66

stdlib/winreg.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from _typeshed import Self
22
from types import TracebackType
3-
from typing import Any, Type,
3+
from typing import Any, Type
44
from typing_extensions import final
55

66
_KeyType = HKEYType | int

stdlib/xml/dom/pulldom.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import sys
2-
from typing import IO, Any, Sequence, Tuple,
2+
from typing import IO, Any, Sequence, Tuple
33
from typing_extensions import Literal
44
from xml.dom.minidom import Document, DOMImplementation, Element, Text
55
from xml.sax.handler import ContentHandler

stdlib/xml/dom/xmlbuilder.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import Any, NoReturn,
1+
from typing import Any, NoReturn
22
from typing_extensions import Literal
33
from urllib.request import OpenerDirector
44
from xml.dom.expatbuilder import ExpatBuilder, ExpatBuilderNS

stdlib/xmlrpc/server.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import pydoc
33
import socketserver
44
import sys
55
from datetime import datetime
6-
from typing import Any, Callable, Dict, Iterable, List, Mapping, Pattern, Protocol, Tuple, Type,
6+
from typing import Any, Callable, Dict, Iterable, List, Mapping, Pattern, Protocol, Tuple, Type
77
from xmlrpc.client import Fault
88

99
# TODO: Recursive type on tuple, list, dict

stdlib/zipapp.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import sys
22
from pathlib import Path
3-
from typing import BinaryIO, Callable,
3+
from typing import BinaryIO, Callable
44

55
_Path = str | Path | BinaryIO
66

stubs/Pillow/PIL/Image.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from _typeshed import SupportsRead, SupportsWrite
22
from collections.abc import Iterable, Iterator, MutableMapping
33
from pathlib import Path
4-
from typing import Any, Callable, Dict, Protocol, Sequence, SupportsBytes, Tuple,
4+
from typing import Any, Callable, Dict, Protocol, Sequence, SupportsBytes, Tuple
55
from typing_extensions import Literal
66

77
from ._imaging import (

stubs/Pillow/PIL/ImageColor.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import Tuple,
1+
from typing import Tuple
22

33
_RGB = Tuple[int, int, int] | Tuple[int, int, int, int]
44
_Ink = str | int | _RGB

stubs/Pillow/PIL/TiffTags.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import Any, Dict, NamedTuple, Tuple,
1+
from typing import Any, Dict, NamedTuple, Tuple
22
from typing_extensions import Literal
33

44
class _TagInfo(NamedTuple):

stubs/PyYAML/yaml/constructor.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import Any, Pattern,
1+
from typing import Any, Pattern
22

33
from yaml.error import MarkedYAMLError
44
from yaml.nodes import ScalarNode

0 commit comments

Comments
 (0)