Skip to content

Commit 9564118

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
1 parent 4af2431 commit 9564118

File tree

4 files changed

+13
-6
lines changed

4 files changed

+13
-6
lines changed

stdlib/email/iterators.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@ __all__ = ["body_line_iterator", "typed_subpart_iterator", "walk"]
77
def body_line_iterator(msg: Message, decode: bool = ...) -> Iterator[str]: ...
88
def typed_subpart_iterator(msg: Message, maintype: str = ..., subtype: str | None = ...) -> Iterator[str]: ...
99
def walk(self: Message) -> Iterator[Message]: ...
10+
1011
# We include the seemingly private function because it is documented in the stdlib documentation.
1112
def _structure(msg: Message, fp: SupportsWrite[str] | None = ..., level: int = ..., include_default: bool = ...) -> None: ...

stdlib/msilib/__init__.pyi

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,13 @@ from typing import Any, Container, Iterable, Sequence
44
from typing_extensions import Literal
55

66
if sys.platform == "win32":
7-
from _msi import _Database
8-
from _msi import UuidCreate as UuidCreate, FCICreate as FCICreate, OpenDatabase as OpenDatabase, CreateRecord as CreateRecord
7+
from _msi import (
8+
CreateRecord as CreateRecord,
9+
FCICreate as FCICreate,
10+
OpenDatabase as OpenDatabase,
11+
UuidCreate as UuidCreate,
12+
_Database,
13+
)
914

1015
AMD64: bool
1116
if sys.version_info < (3, 7):

stdlib/os/__init__.pyi

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1023,7 +1023,9 @@ if sys.version_info >= (3, 8):
10231023
MFD_HUGE_2GB: int
10241024
MFD_HUGE_16GB: int
10251025
def memfd_create(name: str, flags: int = ...) -> int: ...
1026-
def copy_file_range(src: int, dst: int, count: int, offset_src: int | None = ..., offset_dst: int | None = ...) -> int: ...
1026+
def copy_file_range(
1027+
src: int, dst: int, count: int, offset_src: int | None = ..., offset_dst: int | None = ...
1028+
) -> int: ...
10271029

10281030
if sys.version_info >= (3, 9):
10291031
def waitstatus_to_exitcode(status: int) -> int: ...

stdlib/posix.pyi

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -273,8 +273,7 @@ if sys.platform != "win32":
273273
from os import CLD_KILLED as CLD_KILLED, CLD_STOPPED as CLD_STOPPED, waitstatus_to_exitcode as waitstatus_to_exitcode
274274

275275
if sys.platform == "linux":
276-
from os import P_PIDFD as P_PIDFD
277-
from os import pidfd_open as pidfd_open
276+
from os import P_PIDFD as P_PIDFD, pidfd_open as pidfd_open
278277

279278
if sys.version_info >= (3, 8):
280279
from os import (
@@ -304,8 +303,8 @@ if sys.platform != "win32":
304303
MFD_HUGE_MASK as MFD_HUGE_MASK,
305304
MFD_HUGE_SHIFT as MFD_HUGE_SHIFT,
306305
MFD_HUGETLB as MFD_HUGETLB,
307-
memfd_create as memfd_create,
308306
copy_file_range as copy_file_range,
307+
memfd_create as memfd_create,
309308
)
310309
if sys.version_info >= (3, 7):
311310
from os import register_at_fork as register_at_fork

0 commit comments

Comments
 (0)