File tree 4 files changed +2
-6
lines changed
4 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ if sys.platform != "win32":
11
11
open_flags : str
12
12
13
13
class error (OSError ): ...
14
-
15
14
# Actual typename gdbm, not exposed by the implementation
16
15
class _gdbm :
17
16
def firstkey (self ) -> bytes | None : ...
@@ -37,5 +36,4 @@ if sys.platform != "win32":
37
36
# Don't exist at runtime
38
37
__new__ : None # type: ignore[assignment]
39
38
__init__ : None # type: ignore[assignment]
40
-
41
39
def open (__filename : str , __flags : str = ..., __mode : int = ...) -> _gdbm : ...
Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ if sys.platform != "win32":
9
9
_ValueType = Union [str , bytes ]
10
10
11
11
class error (OSError ): ...
12
-
13
12
library : str
14
13
15
14
# Actual typename dbm, not exposed by the implementation
@@ -33,5 +32,4 @@ if sys.platform != "win32":
33
32
# Don't exist at runtime
34
33
__new__ : None # type: ignore[assignment]
35
34
__init__ : None # type: ignore[assignment]
36
-
37
35
def open (__filename : str , __flags : str = ..., __mode : int = ...) -> _dbm : ...
Original file line number Diff line number Diff line change @@ -100,6 +100,7 @@ class _ntuple_diskusage(NamedTuple):
100
100
free : int
101
101
102
102
def disk_usage (path : int | StrOrBytesPath ) -> _ntuple_diskusage : ...
103
+
103
104
if sys .platform != "win32" :
104
105
# while chown can be imported on Windows it doesn't actually work
105
106
# see https://bugs.python.org/issue33140
Original file line number Diff line number Diff line change @@ -211,8 +211,7 @@ from _socket import (
211
211
if sys .version_info >= (3 , 7 ):
212
212
from _socket import close as close
213
213
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
216
215
if sys .platform != "win32" or sys .version_info >= (3 , 8 ):
217
216
from _socket import if_indextoname as if_indextoname , if_nameindex as if_nameindex , if_nametoindex as if_nametoindex
218
217
if sys .platform == "linux" :
You can’t perform that action at this time.
0 commit comments