Skip to content

Commit 541e5de

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
1 parent ed76a4c commit 541e5de

File tree

4 files changed

+2
-6
lines changed

4 files changed

+2
-6
lines changed

stdlib/dbm/gnu.pyi

-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ if sys.platform != "win32":
1111
open_flags: str
1212

1313
class error(OSError): ...
14-
1514
# Actual typename gdbm, not exposed by the implementation
1615
class _gdbm:
1716
def firstkey(self) -> bytes | None: ...
@@ -37,5 +36,4 @@ if sys.platform != "win32":
3736
# Don't exist at runtime
3837
__new__: None # type: ignore[assignment]
3938
__init__: None # type: ignore[assignment]
40-
4139
def open(__filename: str, __flags: str = ..., __mode: int = ...) -> _gdbm: ...

stdlib/dbm/ndbm.pyi

-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ if sys.platform != "win32":
99
_ValueType = Union[str, bytes]
1010

1111
class error(OSError): ...
12-
1312
library: str
1413

1514
# Actual typename dbm, not exposed by the implementation
@@ -33,5 +32,4 @@ if sys.platform != "win32":
3332
# Don't exist at runtime
3433
__new__: None # type: ignore[assignment]
3534
__init__: None # type: ignore[assignment]
36-
3735
def open(__filename: str, __flags: str = ..., __mode: int = ...) -> _dbm: ...

stdlib/shutil.pyi

+1
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ class _ntuple_diskusage(NamedTuple):
100100
free: int
101101

102102
def disk_usage(path: int | StrOrBytesPath) -> _ntuple_diskusage: ...
103+
103104
if sys.platform != "win32":
104105
# while chown can be imported on Windows it doesn't actually work
105106
# see https://bugs.python.org/issue33140

stdlib/socket.pyi

+1-2
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,7 @@ from _socket import (
211211
if sys.version_info >= (3, 7):
212212
from _socket import close as close
213213
if sys.platform != "win32":
214-
from _socket import sethostname as sethostname
215-
from _socket import CMSG_LEN as CMSG_LEN, CMSG_SPACE as CMSG_SPACE
214+
from _socket import CMSG_LEN as CMSG_LEN, CMSG_SPACE as CMSG_SPACE, sethostname as sethostname
216215
if sys.platform != "win32" or sys.version_info >= (3, 8):
217216
from _socket import if_indextoname as if_indextoname, if_nameindex as if_nameindex, if_nametoindex as if_nametoindex
218217
if sys.platform == "linux":

0 commit comments

Comments
 (0)