Skip to content

Commit db218ce

Browse files
committed
Formatting
1 parent 65aa80d commit db218ce

37 files changed

+296
-255
lines changed

stdlib/_codecs.pyi

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ def latin_1_encode(str: str, errors: str | None = None, /) -> tuple[bytes, int]:
8181

8282
if sys.version_info >= (3, 9):
8383
def raw_unicode_escape_decode(
84-
data: str | ReadableBuffer, errors: str | None = None, final: bool = True,
85-
/) -> tuple[str, int]: ...
84+
data: str | ReadableBuffer, errors: str | None = None, final: bool = True, /
85+
) -> tuple[str, int]: ...
8686

8787
else:
8888
def raw_unicode_escape_decode(data: str | ReadableBuffer, errors: str | None = None, /) -> tuple[str, int]: ...
@@ -92,8 +92,8 @@ def readbuffer_encode(data: str | ReadableBuffer, errors: str | None = None, /)
9292

9393
if sys.version_info >= (3, 9):
9494
def unicode_escape_decode(
95-
data: str | ReadableBuffer, errors: str | None = None, final: bool = True,
96-
/) -> tuple[str, int]: ...
95+
data: str | ReadableBuffer, errors: str | None = None, final: bool = True, /
96+
) -> tuple[str, int]: ...
9797

9898
else:
9999
def unicode_escape_decode(data: str | ReadableBuffer, errors: str | None = None, /) -> tuple[str, int]: ...
@@ -104,17 +104,17 @@ def utf_16_be_encode(str: str, errors: str | None = None, /) -> tuple[bytes, int
104104
def utf_16_decode(data: ReadableBuffer, errors: str | None = None, final: bool = False, /) -> tuple[str, int]: ...
105105
def utf_16_encode(str: str, errors: str | None = None, byteorder: int = 0, /) -> tuple[bytes, int]: ...
106106
def utf_16_ex_decode(
107-
data: ReadableBuffer, errors: str | None = None, byteorder: int = 0, final: bool = False,
108-
/) -> tuple[str, int, int]: ...
107+
data: ReadableBuffer, errors: str | None = None, byteorder: int = 0, final: bool = False, /
108+
) -> tuple[str, int, int]: ...
109109
def utf_16_le_decode(data: ReadableBuffer, errors: str | None = None, final: bool = False, /) -> tuple[str, int]: ...
110110
def utf_16_le_encode(str: str, errors: str | None = None, /) -> tuple[bytes, int]: ...
111111
def utf_32_be_decode(data: ReadableBuffer, errors: str | None = None, final: bool = False, /) -> tuple[str, int]: ...
112112
def utf_32_be_encode(str: str, errors: str | None = None, /) -> tuple[bytes, int]: ...
113113
def utf_32_decode(data: ReadableBuffer, errors: str | None = None, final: bool = False, /) -> tuple[str, int]: ...
114114
def utf_32_encode(str: str, errors: str | None = None, byteorder: int = 0, /) -> tuple[bytes, int]: ...
115115
def utf_32_ex_decode(
116-
data: ReadableBuffer, errors: str | None = None, byteorder: int = 0, final: bool = False,
117-
/) -> tuple[str, int, int]: ...
116+
data: ReadableBuffer, errors: str | None = None, byteorder: int = 0, final: bool = False, /
117+
) -> tuple[str, int, int]: ...
118118
def utf_32_le_decode(data: ReadableBuffer, errors: str | None = None, final: bool = False, /) -> tuple[str, int]: ...
119119
def utf_32_le_encode(str: str, errors: str | None = None, /) -> tuple[bytes, int]: ...
120120
def utf_7_decode(data: ReadableBuffer, errors: str | None = None, final: bool = False, /) -> tuple[str, int]: ...
@@ -126,8 +126,8 @@ if sys.platform == "win32":
126126
def mbcs_decode(data: ReadableBuffer, errors: str | None = None, final: bool = False, /) -> tuple[str, int]: ...
127127
def mbcs_encode(str: str, errors: str | None = None, /) -> tuple[bytes, int]: ...
128128
def code_page_decode(
129-
codepage: int, data: ReadableBuffer, errors: str | None = None, final: bool = False,
130-
/) -> tuple[str, int]: ...
129+
codepage: int, data: ReadableBuffer, errors: str | None = None, final: bool = False, /
130+
) -> tuple[str, int]: ...
131131
def code_page_encode(code_page: int, str: str, errors: str | None = None, /) -> tuple[bytes, int]: ...
132132
def oem_decode(data: ReadableBuffer, errors: str | None = None, final: bool = False, /) -> tuple[str, int]: ...
133133
def oem_encode(str: str, errors: str | None = None, /) -> tuple[bytes, int]: ...

stdlib/_ctypes.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,8 @@ class CFuncPtr(_PointerLike, _CData):
127127
if sys.platform == "win32":
128128
@overload
129129
def __init__(
130-
self, vtbl_index: int, name: str, paramflags: tuple[_PF, ...] | None = ..., iid: _CData | None = ...,
131-
/) -> None: ...
130+
self, vtbl_index: int, name: str, paramflags: tuple[_PF, ...] | None = ..., iid: _CData | None = ..., /
131+
) -> None: ...
132132

133133
def __call__(self, *args: Any, **kwargs: Any) -> Any: ...
134134

stdlib/_curses.pyi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,8 @@ if sys.platform != "win32":
359359
i7: int = 0,
360360
i8: int = 0,
361361
i9: int = 0,
362-
/) -> bytes: ...
362+
/,
363+
) -> bytes: ...
363364
def typeahead(fd: int, /) -> None: ...
364365
def unctrl(ch: _ChType, /) -> bytes: ...
365366
if sys.version_info < (3, 12) or sys.platform != "darwin":

stdlib/_posixsubprocess.pyi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,5 @@ if sys.platform != "win32":
2929
child_umask: int,
3030
preexec_fn: Callable[[], None],
3131
allow_vfork: bool,
32-
/) -> int: ...
32+
/,
33+
) -> int: ...

stdlib/_py_abc.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ def get_cache_token() -> _CacheToken: ...
99

1010
class ABCMeta(type):
1111
def __new__(
12-
mcls: type[_typeshed.Self], name: str, bases: tuple[type[Any], ...], namespace: dict[str, Any],
13-
/) -> _typeshed.Self: ...
12+
mcls: type[_typeshed.Self], name: str, bases: tuple[type[Any], ...], namespace: dict[str, Any], /
13+
) -> _typeshed.Self: ...
1414
def register(cls, subclass: type[_T]) -> type[_T]: ...

stdlib/_socket.pyi

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -719,8 +719,8 @@ class socket:
719719
if sys.platform != "win32":
720720
def recvmsg(self, bufsize: int, ancbufsize: int = ..., flags: int = ..., /) -> tuple[bytes, list[_CMSG], int, Any]: ...
721721
def recvmsg_into(
722-
self, buffers: Iterable[WriteableBuffer], ancbufsize: int = ..., flags: int = ...,
723-
/) -> tuple[int, list[_CMSG], int, Any]: ...
722+
self, buffers: Iterable[WriteableBuffer], ancbufsize: int = ..., flags: int = ..., /
723+
) -> tuple[int, list[_CMSG], int, Any]: ...
724724

725725
def recvfrom_into(self, buffer: WriteableBuffer, nbytes: int = ..., flags: int = ...) -> tuple[int, _RetAddress]: ...
726726
def recv_into(self, buffer: WriteableBuffer, nbytes: int = ..., flags: int = ...) -> int: ...
@@ -737,7 +737,8 @@ class socket:
737737
ancdata: Iterable[_CMSGArg] = ...,
738738
flags: int = ...,
739739
address: _Address | None = ...,
740-
/) -> int: ...
740+
/,
741+
) -> int: ...
741742
if sys.platform == "linux":
742743
def sendmsg_afalg(
743744
self, msg: Iterable[ReadableBuffer] = ..., *, op: int, iv: Any = ..., assoclen: int = ..., flags: int = ...

stdlib/_tkinter.pyi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ def create(
115115
wantTk: bool = True,
116116
sync: bool = False,
117117
use: str | None = None,
118-
/): ...
118+
/,
119+
): ...
119120
def getbusywaitinterval(): ...
120121
def setbusywaitinterval(new_val, /): ...

stdlib/_typeshed/wsgi.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ else:
2020
# stable
2121
class StartResponse(Protocol):
2222
def __call__(
23-
self, status: str, headers: list[tuple[str, str]], exc_info: OptExcInfo | None = ...,
24-
/) -> Callable[[bytes], object]: ...
23+
self, status: str, headers: list[tuple[str, str]], exc_info: OptExcInfo | None = ..., /
24+
) -> Callable[[bytes], object]: ...
2525

2626
WSGIEnvironment: TypeAlias = dict[str, Any] # stable
2727
WSGIApplication: TypeAlias = Callable[[WSGIEnvironment, StartResponse], Iterable[bytes]] # stable

stdlib/_winapi.pyi

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,8 @@ if sys.platform == "win32":
173173
creation_disposition: int,
174174
flags_and_attributes: int,
175175
template_file: int,
176-
/) -> int: ...
176+
/,
177+
) -> int: ...
177178
def CreateJunction(src_path: str, dst_path: str, /) -> None: ...
178179
def CreateNamedPipe(
179180
name: str,
@@ -184,7 +185,8 @@ if sys.platform == "win32":
184185
in_buffer_size: int,
185186
default_timeout: int,
186187
security_attributes: int,
187-
/) -> int: ...
188+
/,
189+
) -> int: ...
188190
def CreatePipe(pipe_attrs: Any, size: int, /) -> tuple[int, int]: ...
189191
def CreateProcess(
190192
application_name: str | None,
@@ -196,15 +198,17 @@ if sys.platform == "win32":
196198
env_mapping: dict[str, str],
197199
current_directory: str | None,
198200
startup_info: Any,
199-
/) -> tuple[int, int, int, int]: ...
201+
/,
202+
) -> tuple[int, int, int, int]: ...
200203
def DuplicateHandle(
201204
source_process_handle: int,
202205
source_handle: int,
203206
target_process_handle: int,
204207
desired_access: int,
205208
inherit_handle: bool,
206209
options: int = 0,
207-
/) -> int: ...
210+
/,
211+
) -> int: ...
208212
def ExitProcess(ExitCode: int, /) -> NoReturn: ...
209213
def GetACP() -> int: ...
210214
def GetFileType(handle: int) -> int: ...
@@ -227,8 +231,8 @@ if sys.platform == "win32":
227231
@overload
228232
def ReadFile(handle: int, size: int, overlapped: int | bool) -> tuple[Any, int]: ...
229233
def SetNamedPipeHandleState(
230-
named_pipe: int, mode: int | None, max_collection_count: int | None, collect_data_timeout: int | None,
231-
/) -> None: ...
234+
named_pipe: int, mode: int | None, max_collection_count: int | None, collect_data_timeout: int | None, /
235+
) -> None: ...
232236
def TerminateProcess(handle: int, exit_code: int, /) -> None: ...
233237
def WaitForMultipleObjects(handle_seq: Sequence[int], wait_flag: bool, milliseconds: int = 0xFFFFFFFF, /) -> int: ...
234238
def WaitForSingleObject(handle: int, milliseconds: int, /) -> int: ...

stdlib/array.pyi

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ class array(MutableSequence[_T]):
2727
def __init__(self: array[int], typecode: _IntTypeCode, initializer: bytes | bytearray | Iterable[int] = ..., /) -> None: ...
2828
@overload
2929
def __init__(
30-
self: array[float], typecode: _FloatTypeCode, initializer: bytes | bytearray | Iterable[float] = ...,
31-
/) -> None: ...
30+
self: array[float], typecode: _FloatTypeCode, initializer: bytes | bytearray | Iterable[float] = ..., /
31+
) -> None: ...
3232
@overload
3333
def __init__(
34-
self: array[str], typecode: _UnicodeTypeCode, initializer: bytes | bytearray | Iterable[str] = ...,
35-
/) -> None: ...
34+
self: array[str], typecode: _UnicodeTypeCode, initializer: bytes | bytearray | Iterable[str] = ..., /
35+
) -> None: ...
3636
@overload
3737
def __init__(self, typecode: str, initializer: Iterable[_T], /) -> None: ...
3838
@overload

0 commit comments

Comments
 (0)