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

stdlib/asyncio/events.pyi

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,7 @@ _ProtocolFactory: TypeAlias = Callable[[], BaseProtocol]
4343
_SSLContext: TypeAlias = bool | None | ssl.SSLContext
4444

4545
class _TaskFactory(Protocol):
46-
def __call__(
47-
self, loop: AbstractEventLoop, factory: Coroutine[Any, Any, _T] | Generator[Any, None, _T],
48-
/) -> Future[_T]: ...
46+
def __call__(self, loop: AbstractEventLoop, factory: Coroutine[Any, Any, _T] | Generator[Any, None, _T], /) -> Future[_T]: ...
4947

5048
class Handle:
5149
_cancelled: bool

stdlib/asyncio/tasks.pyi

Lines changed: 36 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@ if sys.version_info >= (3, 10):
108108
coro_or_future1: _FutureLike[_T1],
109109
coro_or_future2: _FutureLike[_T2],
110110
coro_or_future3: _FutureLike[_T3],
111-
/, *,
111+
/,
112+
*,
112113
return_exceptions: Literal[False] = False,
113114
) -> Future[tuple[_T1, _T2, _T3]]: ...
114115
@overload
@@ -117,7 +118,8 @@ if sys.version_info >= (3, 10):
117118
coro_or_future2: _FutureLike[_T2],
118119
coro_or_future3: _FutureLike[_T3],
119120
coro_or_future4: _FutureLike[_T4],
120-
/, *,
121+
/,
122+
*,
121123
return_exceptions: Literal[False] = False,
122124
) -> Future[tuple[_T1, _T2, _T3, _T4]]: ...
123125
@overload
@@ -127,7 +129,8 @@ if sys.version_info >= (3, 10):
127129
coro_or_future3: _FutureLike[_T3],
128130
coro_or_future4: _FutureLike[_T4],
129131
coro_or_future5: _FutureLike[_T5],
130-
/, *,
132+
/,
133+
*,
131134
return_exceptions: Literal[False] = False,
132135
) -> Future[tuple[_T1, _T2, _T3, _T4, _T5]]: ...
133136
@overload
@@ -138,7 +141,8 @@ if sys.version_info >= (3, 10):
138141
coro_or_future4: _FutureLike[_T4],
139142
coro_or_future5: _FutureLike[_T5],
140143
coro_or_future6: _FutureLike[_T6],
141-
/, *,
144+
/,
145+
*,
142146
return_exceptions: Literal[False] = False,
143147
) -> Future[tuple[_T1, _T2, _T3, _T4, _T5, _T6]]: ...
144148
@overload
@@ -154,7 +158,8 @@ if sys.version_info >= (3, 10):
154158
coro_or_future1: _FutureLike[_T1],
155159
coro_or_future2: _FutureLike[_T2],
156160
coro_or_future3: _FutureLike[_T3],
157-
/, *,
161+
/,
162+
*,
158163
return_exceptions: bool,
159164
) -> Future[tuple[_T1 | BaseException, _T2 | BaseException, _T3 | BaseException]]: ...
160165
@overload
@@ -163,7 +168,8 @@ if sys.version_info >= (3, 10):
163168
coro_or_future2: _FutureLike[_T2],
164169
coro_or_future3: _FutureLike[_T3],
165170
coro_or_future4: _FutureLike[_T4],
166-
/, *,
171+
/,
172+
*,
167173
return_exceptions: bool,
168174
) -> Future[tuple[_T1 | BaseException, _T2 | BaseException, _T3 | BaseException, _T4 | BaseException]]: ...
169175
@overload
@@ -173,7 +179,8 @@ if sys.version_info >= (3, 10):
173179
coro_or_future3: _FutureLike[_T3],
174180
coro_or_future4: _FutureLike[_T4],
175181
coro_or_future5: _FutureLike[_T5],
176-
/, *,
182+
/,
183+
*,
177184
return_exceptions: bool,
178185
) -> Future[
179186
tuple[_T1 | BaseException, _T2 | BaseException, _T3 | BaseException, _T4 | BaseException, _T5 | BaseException]
@@ -186,7 +193,8 @@ if sys.version_info >= (3, 10):
186193
coro_or_future4: _FutureLike[_T4],
187194
coro_or_future5: _FutureLike[_T5],
188195
coro_or_future6: _FutureLike[_T6],
189-
/, *,
196+
/,
197+
*,
190198
return_exceptions: bool,
191199
) -> Future[
192200
tuple[
@@ -210,7 +218,8 @@ else:
210218
def gather( # type: ignore[overload-overlap]
211219
coro_or_future1: _FutureLike[_T1],
212220
coro_or_future2: _FutureLike[_T2],
213-
/, *,
221+
/,
222+
*,
214223
loop: AbstractEventLoop | None = None,
215224
return_exceptions: Literal[False] = False,
216225
) -> Future[tuple[_T1, _T2]]: ...
@@ -219,7 +228,8 @@ else:
219228
coro_or_future1: _FutureLike[_T1],
220229
coro_or_future2: _FutureLike[_T2],
221230
coro_or_future3: _FutureLike[_T3],
222-
/, *,
231+
/,
232+
*,
223233
loop: AbstractEventLoop | None = None,
224234
return_exceptions: Literal[False] = False,
225235
) -> Future[tuple[_T1, _T2, _T3]]: ...
@@ -229,7 +239,8 @@ else:
229239
coro_or_future2: _FutureLike[_T2],
230240
coro_or_future3: _FutureLike[_T3],
231241
coro_or_future4: _FutureLike[_T4],
232-
/, *,
242+
/,
243+
*,
233244
loop: AbstractEventLoop | None = None,
234245
return_exceptions: Literal[False] = False,
235246
) -> Future[tuple[_T1, _T2, _T3, _T4]]: ...
@@ -240,7 +251,8 @@ else:
240251
coro_or_future3: _FutureLike[_T3],
241252
coro_or_future4: _FutureLike[_T4],
242253
coro_or_future5: _FutureLike[_T5],
243-
/, *,
254+
/,
255+
*,
244256
loop: AbstractEventLoop | None = None,
245257
return_exceptions: Literal[False] = False,
246258
) -> Future[tuple[_T1, _T2, _T3, _T4, _T5]]: ...
@@ -252,7 +264,8 @@ else:
252264
coro_or_future4: _FutureLike[_T4],
253265
coro_or_future5: _FutureLike[_T5],
254266
coro_or_future6: _FutureLike[_T6],
255-
/, *,
267+
/,
268+
*,
256269
loop: AbstractEventLoop | None = None,
257270
return_exceptions: Literal[False] = False,
258271
) -> Future[tuple[_T1, _T2, _T3, _T4, _T5, _T6]]: ...
@@ -268,7 +281,8 @@ else:
268281
def gather( # type: ignore[overload-overlap]
269282
coro_or_future1: _FutureLike[_T1],
270283
coro_or_future2: _FutureLike[_T2],
271-
/, *,
284+
/,
285+
*,
272286
loop: AbstractEventLoop | None = None,
273287
return_exceptions: bool,
274288
) -> Future[tuple[_T1 | BaseException, _T2 | BaseException]]: ...
@@ -277,7 +291,8 @@ else:
277291
coro_or_future1: _FutureLike[_T1],
278292
coro_or_future2: _FutureLike[_T2],
279293
coro_or_future3: _FutureLike[_T3],
280-
/, *,
294+
/,
295+
*,
281296
loop: AbstractEventLoop | None = None,
282297
return_exceptions: bool,
283298
) -> Future[tuple[_T1 | BaseException, _T2 | BaseException, _T3 | BaseException]]: ...
@@ -287,7 +302,8 @@ else:
287302
coro_or_future2: _FutureLike[_T2],
288303
coro_or_future3: _FutureLike[_T3],
289304
coro_or_future4: _FutureLike[_T4],
290-
/, *,
305+
/,
306+
*,
291307
loop: AbstractEventLoop | None = None,
292308
return_exceptions: bool,
293309
) -> Future[tuple[_T1 | BaseException, _T2 | BaseException, _T3 | BaseException, _T4 | BaseException]]: ...
@@ -299,7 +315,8 @@ else:
299315
coro_or_future4: _FutureLike[_T4],
300316
coro_or_future5: _FutureLike[_T5],
301317
coro_or_future6: _FutureLike[_T6],
302-
/, *,
318+
/,
319+
*,
303320
loop: AbstractEventLoop | None = None,
304321
return_exceptions: bool,
305322
) -> Future[
@@ -447,7 +464,8 @@ if sys.version_info >= (3, 12):
447464
def __call__(
448465
self,
449466
coro: _TaskCompatibleCoro[Any],
450-
/, *,
467+
/,
468+
*,
451469
loop: AbstractEventLoop,
452470
name: str | None,
453471
context: Context | None,

0 commit comments

Comments
 (0)