mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-06 09:57:41 +08:00
Improve pathlib stubs (#7181)
This commit is contained in:
@@ -6,6 +6,11 @@ sqlite3.Connection.load_extension
|
||||
sqlite3.dbapi2.Connection.enable_load_extension
|
||||
sqlite3.dbapi2.Connection.load_extension
|
||||
|
||||
# pathlib methods that exist on Windows, but always raise NotImplementedError,
|
||||
# so are omitted from the stub
|
||||
pathlib.WindowsPath.is_mount
|
||||
pathlib.Path.is_mount
|
||||
|
||||
# Exists at runtime, but missing from stubs
|
||||
_winapi.CreateFileMapping
|
||||
_winapi.MapViewOfFile
|
||||
|
||||
@@ -7,6 +7,11 @@ cgi.parse
|
||||
urllib.parse.parse_qs
|
||||
urllib.parse.parse_qsl
|
||||
|
||||
# pathlib methods that exist on Windows, but always raise NotImplementedError,
|
||||
# so are omitted from the stub
|
||||
pathlib.WindowsPath.group
|
||||
pathlib.WindowsPath.owner
|
||||
|
||||
hashlib.scrypt
|
||||
os.startfile
|
||||
|
||||
|
||||
@@ -8,6 +8,13 @@ cgi.parse_multipart
|
||||
urllib.parse.parse_qs
|
||||
urllib.parse.parse_qsl
|
||||
|
||||
# pathlib methods that exist on Windows, but always raise NotImplementedError,
|
||||
# so are omitted from the stub
|
||||
pathlib.WindowsPath.group
|
||||
pathlib.WindowsPath.owner
|
||||
pathlib.Path.is_mount
|
||||
pathlib.WindowsPath.is_mount
|
||||
|
||||
os.startfile
|
||||
|
||||
# Exists at runtime, but missing from stubs
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
# pathlib methods that exist on Windows, but always raise NotImplementedError,
|
||||
# so are omitted from the stub
|
||||
pathlib.WindowsPath.group
|
||||
pathlib.WindowsPath.owner
|
||||
pathlib.Path.is_mount
|
||||
pathlib.WindowsPath.is_mount
|
||||
|
||||
# Exists at runtime, but missing from stubs
|
||||
_winapi.CreateFileMapping
|
||||
_winapi.MapViewOfFile
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
# pathlib methods that exist on Windows, but always raise NotImplementedError,
|
||||
# so are omitted from the stub
|
||||
pathlib.Path.is_mount
|
||||
pathlib.WindowsPath.is_mount
|
||||
|
||||
# Exists at runtime, but missing from stubs
|
||||
_winapi.CreateFileMapping
|
||||
_winapi.MapViewOfFile
|
||||
|
||||
@@ -56,6 +56,10 @@ curses.textpad
|
||||
pty
|
||||
tty
|
||||
|
||||
# pathlib functions that rely on modules that don't exist on Windows
|
||||
pathlib.Path.owner
|
||||
pathlib.Path.group
|
||||
|
||||
# Exists at runtime, but missing from stubs
|
||||
_msi.MSIError
|
||||
asyncio.windows_utils.Popen
|
||||
|
||||
Reference in New Issue
Block a user