Skip to content

Commit

Permalink
fix syntax errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Akuli committed Dec 16, 2021
1 parent 885094b commit 4a859fd
Show file tree
Hide file tree
Showing 68 changed files with 68 additions and 68 deletions.
2 changes: 1 addition & 1 deletion stdlib/_codecs.pyi
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import codecs
import sys
from typing import Any, Callable, Dict, Tuple,
from typing import Any, Callable, Dict, Tuple

# This type is not exposed; it is defined in unicodeobject.c
class _EncodingMap:
Expand Down
2 changes: 1 addition & 1 deletion stdlib/_csv.pyi
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Any, Iterable, Iterator, List, Protocol, Type,
from typing import Any, Iterable, Iterator, List, Protocol, Type

QUOTE_ALL: int
QUOTE_MINIMAL: int
Expand Down
2 changes: 1 addition & 1 deletion stdlib/_typeshed/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import ctypes
import mmap
import sys
from os import PathLike
from typing import AbstractSet, Any, Awaitable, Container, Iterable, Protocol, TypeVar,
from typing import AbstractSet, Any, Awaitable, Container, Iterable, Protocol, TypeVar
from typing_extensions import Literal, final

_KT = TypeVar("_KT")
Expand Down
2 changes: 1 addition & 1 deletion stdlib/asyncio/base_subprocess.pyi
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import subprocess
from collections import deque
from typing import IO, Any, Callable, Sequence, Tuple,
from typing import IO, Any, Callable, Sequence, Tuple

from . import events, futures, protocols, transports

Expand Down
2 changes: 1 addition & 1 deletion stdlib/asyncio/streams.pyi
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import sys
from _typeshed import StrPath
from typing import Any, AsyncIterator, Awaitable, Callable, Iterable,
from typing import Any, AsyncIterator, Awaitable, Callable, Iterable

from . import events, protocols, transports
from .base_events import Server
Expand Down
2 changes: 1 addition & 1 deletion stdlib/asyncio/subprocess.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import subprocess
import sys
from _typeshed import StrOrBytesPath
from asyncio import events, protocols, streams, transports
from typing import IO, Any, Callable,
from typing import IO, Any, Callable
from typing_extensions import Literal

if sys.version_info >= (3, 8):
Expand Down
2 changes: 1 addition & 1 deletion stdlib/binhex.pyi
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import IO, Any, Tuple,
from typing import IO, Any, Tuple

class Error(Exception): ...

Expand Down
2 changes: 1 addition & 1 deletion stdlib/cmath.pyi
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import sys
from typing import SupportsComplex, SupportsFloat,
from typing import SupportsComplex, SupportsFloat

if sys.version_info >= (3, 8):
from typing import SupportsIndex
Expand Down
2 changes: 1 addition & 1 deletion stdlib/copyreg.pyi
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Any, Callable, Hashable, SupportsInt, Tuple, TypeVar,
from typing import Any, Callable, Hashable, SupportsInt, Tuple, TypeVar

_TypeT = TypeVar("_TypeT", bound=type)
_Reduce = Tuple[Callable[..., _TypeT], Tuple[Any, ...]] | Tuple[Callable[..., _TypeT], Tuple[Any, ...], Any | None]
Expand Down
2 changes: 1 addition & 1 deletion stdlib/dbm/__init__.pyi
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from _typeshed import Self
from types import TracebackType
from typing import Iterator, MutableMapping, Type,
from typing import Iterator, MutableMapping, Type
from typing_extensions import Literal

_KeyType = str | bytes
Expand Down
2 changes: 1 addition & 1 deletion stdlib/dbm/dumb.pyi
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from _typeshed import Self
from types import TracebackType
from typing import Iterator, MutableMapping, Type,
from typing import Iterator, MutableMapping, Type

_KeyType = str | bytes
_ValueType = str | bytes
Expand Down
2 changes: 1 addition & 1 deletion stdlib/dis.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ from opcode import (
opname as opname,
stack_effect as stack_effect,
)
from typing import IO, Any, Callable, Iterator, NamedTuple,
from typing import IO, Any, Callable, Iterator, NamedTuple

# Strictly this should not have to include Callable, but mypy doesn't use FunctionType
# for functions (python/mypy#3171)
Expand Down
2 changes: 1 addition & 1 deletion stdlib/distutils/ccompiler.pyi
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Any, Callable, Tuple,
from typing import Any, Callable, Tuple

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

Expand Down
2 changes: 1 addition & 1 deletion stdlib/email/_header_value_parser.pyi
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import sys
from email.errors import HeaderParseError, MessageDefect
from email.policy import Policy
from typing import Any, Iterable, Iterator, List, Pattern, Type, TypeVar,
from typing import Any, Iterable, Iterator, List, Pattern, Type, TypeVar
from typing_extensions import Final

_T = TypeVar("_T")
Expand Down
2 changes: 1 addition & 1 deletion stdlib/email/message.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ from email.charset import Charset
from email.contentmanager import ContentManager
from email.errors import MessageDefect
from email.policy import Policy
from typing import Any, Generator, Iterator, List, Sequence, Tuple, TypeVar,
from typing import Any, Generator, Iterator, List, Sequence, Tuple, TypeVar

_T = TypeVar("_T")

Expand Down
2 changes: 1 addition & 1 deletion stdlib/email/mime/application.pyi
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from email.mime.nonmultipart import MIMENonMultipart
from email.policy import Policy
from typing import Callable, Tuple,
from typing import Callable, Tuple

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

Expand Down
2 changes: 1 addition & 1 deletion stdlib/email/mime/audio.pyi
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from email.mime.nonmultipart import MIMENonMultipart
from email.policy import Policy
from typing import Callable, Tuple,
from typing import Callable, Tuple

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

Expand Down
2 changes: 1 addition & 1 deletion stdlib/email/mime/base.pyi
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import email.message
from email.policy import Policy
from typing import Tuple,
from typing import Tuple

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

Expand Down
2 changes: 1 addition & 1 deletion stdlib/email/mime/image.pyi
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from email.mime.nonmultipart import MIMENonMultipart
from email.policy import Policy
from typing import Callable, Tuple,
from typing import Callable, Tuple

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

Expand Down
2 changes: 1 addition & 1 deletion stdlib/email/mime/multipart.pyi
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from email.message import Message
from email.mime.base import MIMEBase
from email.policy import Policy
from typing import Sequence, Tuple,
from typing import Sequence, Tuple

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

Expand Down
2 changes: 1 addition & 1 deletion stdlib/imaplib.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ from _typeshed import Self
from socket import socket as _socket
from ssl import SSLContext, SSLSocket
from types import TracebackType
from typing import IO, Any, Callable, List, Pattern, Tuple, Type,
from typing import IO, Any, Callable, List, Pattern, Tuple, Type
from typing_extensions import Literal

# TODO: Commands should use their actual return types, not this type alias.
Expand Down
2 changes: 1 addition & 1 deletion stdlib/importlib/resources.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if sys.version_info >= (3, 7):
from contextlib import AbstractContextManager
from pathlib import Path
from types import ModuleType
from typing import BinaryIO, Iterator, TextIO,
from typing import BinaryIO, Iterator, TextIO

Package = str | ModuleType
Resource = str | os.PathLike[Any]
Expand Down
2 changes: 1 addition & 1 deletion stdlib/inspect.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ from types import (
if sys.version_info >= (3, 7):
from types import ClassMethodDescriptorType, WrapperDescriptorType, MemberDescriptorType, MethodDescriptorType

from typing import Any, ClassVar, NamedTuple, Protocol, Tuple, Type, TypeVar,
from typing import Any, ClassVar, NamedTuple, Protocol, Tuple, Type, TypeVar
from typing_extensions import Literal, TypeGuard

#
Expand Down
2 changes: 1 addition & 1 deletion stdlib/lib2to3/pytree.pyi
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from lib2to3.pgen2.grammar import Grammar
from typing import Any, Callable, Dict, Iterator, List, Tuple, TypeVar,
from typing import Any, Callable, Dict, Iterator, List, Tuple, TypeVar

_P = TypeVar("_P")
_NL = Node | Leaf
Expand Down
2 changes: 1 addition & 1 deletion stdlib/mailcap.pyi
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Dict, Mapping, Sequence,
from typing import Dict, Mapping, Sequence

_Cap = Dict[str, str | int]

Expand Down
2 changes: 1 addition & 1 deletion stdlib/multiprocessing/connection.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import socket
import sys
import types
from _typeshed import Self
from typing import Any, Iterable, Tuple, Type,
from typing import Any, Iterable, Tuple, Type

if sys.version_info >= (3, 8):
from typing import SupportsIndex
Expand Down
2 changes: 1 addition & 1 deletion stdlib/multiprocessing/dummy/connection.pyi
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from _typeshed import Self
from queue import Queue
from types import TracebackType
from typing import Any, Tuple, Type,
from typing import Any, Tuple, Type

families: list[None]

Expand Down
2 changes: 1 addition & 1 deletion stdlib/multiprocessing/synchronize.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import sys
import threading
from contextlib import AbstractContextManager
from multiprocessing.context import BaseContext
from typing import Any, Callable,
from typing import Any, Callable

_LockLike = Lock | RLock

Expand Down
2 changes: 1 addition & 1 deletion stdlib/nntplib.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import socket
import ssl
import sys
from _typeshed import Self
from typing import IO, Any, Iterable, NamedTuple, Tuple,
from typing import IO, Any, Iterable, NamedTuple, Tuple

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

Expand Down
2 changes: 1 addition & 1 deletion stdlib/pickle.pyi
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import sys
from typing import Any, Callable, ClassVar, Iterable, Iterator, Mapping, Protocol, Tuple, Type,
from typing import Any, Callable, ClassVar, Iterable, Iterator, Mapping, Protocol, Tuple, Type
from typing_extensions import final

HIGHEST_PROTOCOL: int
Expand Down
2 changes: 1 addition & 1 deletion stdlib/signal.pyi
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import sys
from enum import IntEnum
from types import FrameType
from typing import Any, Callable, Iterable, Tuple,
from typing import Any, Callable, Iterable, Tuple

NSIG: int

Expand Down
2 changes: 1 addition & 1 deletion stdlib/socketserver.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import sys
import types
from _typeshed import Self
from socket import socket as _socket
from typing import Any, BinaryIO, Callable, ClassVar, Tuple, Type, TypeVar,
from typing import Any, BinaryIO, Callable, ClassVar, Tuple, Type, TypeVar

_T = TypeVar("_T")
_RequestType = _socket | Tuple[bytes, _socket]
Expand Down
2 changes: 1 addition & 1 deletion stdlib/statistics.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import sys
from _typeshed import SupportsRichComparisonT
from decimal import Decimal
from fractions import Fraction
from typing import Any, Hashable, Iterable, NamedTuple, Sequence, SupportsFloat, Type, TypeVar,
from typing import Any, Hashable, Iterable, NamedTuple, Sequence, SupportsFloat, Type, TypeVar

_T = TypeVar("_T")
# Most functions in this module accept homogeneous collections of one of these types
Expand Down
2 changes: 1 addition & 1 deletion stdlib/sunau.pyi
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import sys
from _typeshed import Self
from typing import IO, Any, NamedTuple, NoReturn,
from typing import IO, Any, NamedTuple, NoReturn

_File = str | IO[bytes]

Expand Down
2 changes: 1 addition & 1 deletion stdlib/termios.pyi
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from _typeshed import FileDescriptorLike
from typing import Any, List,
from typing import Any, List

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

Expand Down
2 changes: 1 addition & 1 deletion stdlib/timeit.pyi
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import IO, Any, Callable, Sequence,
from typing import IO, Any, Callable, Sequence

_Timer = Callable[[], float]
_Stmt = str | Callable[[], Any]
Expand Down
2 changes: 1 addition & 1 deletion stdlib/tokenize.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import sys
from _typeshed import StrOrBytesPath
from builtins import open as _builtin_open
from token import * # noqa: F403
from typing import Any, Callable, Generator, Iterable, NamedTuple, Pattern, Sequence, TextIO, Tuple,
from typing import Any, Callable, Generator, Iterable, NamedTuple, Pattern, Sequence, TextIO, Tuple

if sys.version_info < (3, 7):
COMMENT: int
Expand Down
2 changes: 1 addition & 1 deletion stdlib/tty.pyi
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import IO,
from typing import IO

_FD = int | IO[str]

Expand Down
2 changes: 1 addition & 1 deletion stdlib/unittest/result.pyi
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import unittest.case
from types import TracebackType
from typing import Any, Callable, TextIO, Tuple, Type, TypeVar,
from typing import Any, Callable, TextIO, Tuple, Type, TypeVar

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

Expand Down
2 changes: 1 addition & 1 deletion stdlib/unittest/suite.pyi
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import unittest.case
import unittest.result
from typing import Iterable, Iterator,
from typing import Iterable, Iterator

_TestType = unittest.case.TestCase | TestSuite

Expand Down
2 changes: 1 addition & 1 deletion stdlib/uu.pyi
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import sys
from typing import BinaryIO,
from typing import BinaryIO

_File = str | BinaryIO

Expand Down
2 changes: 1 addition & 1 deletion stdlib/wave.pyi
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import sys
from _typeshed import Self
from typing import IO, Any, BinaryIO, NamedTuple, NoReturn,
from typing import IO, Any, BinaryIO, NamedTuple, NoReturn

_File = str | IO[bytes]

Expand Down
2 changes: 1 addition & 1 deletion stdlib/winreg.pyi
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from _typeshed import Self
from types import TracebackType
from typing import Any, Type,
from typing import Any, Type
from typing_extensions import final

_KeyType = HKEYType | int
Expand Down
2 changes: 1 addition & 1 deletion stdlib/xml/dom/pulldom.pyi
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import sys
from typing import IO, Any, Sequence, Tuple,
from typing import IO, Any, Sequence, Tuple
from typing_extensions import Literal
from xml.dom.minidom import Document, DOMImplementation, Element, Text
from xml.sax.handler import ContentHandler
Expand Down
2 changes: 1 addition & 1 deletion stdlib/xml/dom/xmlbuilder.pyi
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Any, NoReturn,
from typing import Any, NoReturn
from typing_extensions import Literal
from urllib.request import OpenerDirector
from xml.dom.expatbuilder import ExpatBuilder, ExpatBuilderNS
Expand Down
2 changes: 1 addition & 1 deletion stdlib/xmlrpc/server.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import pydoc
import socketserver
import sys
from datetime import datetime
from typing import Any, Callable, Dict, Iterable, List, Mapping, Pattern, Protocol, Tuple, Type,
from typing import Any, Callable, Dict, Iterable, List, Mapping, Pattern, Protocol, Tuple, Type
from xmlrpc.client import Fault

# TODO: Recursive type on tuple, list, dict
Expand Down
2 changes: 1 addition & 1 deletion stdlib/zipapp.pyi
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import sys
from pathlib import Path
from typing import BinaryIO, Callable,
from typing import BinaryIO, Callable

_Path = str | Path | BinaryIO

Expand Down
2 changes: 1 addition & 1 deletion stubs/Pillow/PIL/Image.pyi
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from _typeshed import SupportsRead, SupportsWrite
from collections.abc import Iterable, Iterator, MutableMapping
from pathlib import Path
from typing import Any, Callable, Dict, Protocol, Sequence, SupportsBytes, Tuple,
from typing import Any, Callable, Dict, Protocol, Sequence, SupportsBytes, Tuple
from typing_extensions import Literal

from ._imaging import (
Expand Down
2 changes: 1 addition & 1 deletion stubs/Pillow/PIL/ImageColor.pyi
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Tuple,
from typing import Tuple

_RGB = Tuple[int, int, int] | Tuple[int, int, int, int]
_Ink = str | int | _RGB
Expand Down
2 changes: 1 addition & 1 deletion stubs/Pillow/PIL/TiffTags.pyi
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Any, Dict, NamedTuple, Tuple,
from typing import Any, Dict, NamedTuple, Tuple
from typing_extensions import Literal

class _TagInfo(NamedTuple):
Expand Down
2 changes: 1 addition & 1 deletion stubs/PyYAML/yaml/constructor.pyi
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Any, Pattern,
from typing import Any, Pattern

from yaml.error import MarkedYAMLError
from yaml.nodes import ScalarNode
Expand Down
Loading

0 comments on commit 4a859fd

Please sign in to comment.