mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-28 23:33:17 +08:00
pathlib: is_mount() is implemented on Windows on py312+ (#10257)
This commit is contained in:
1 parent
7df870f452
commit
c3791d024a
7 files changed
+9
-3
No files matched your search
@@ -159,6 +159,10 @@ class Path(PurePath):
|
||||
# so it's safer to pretend they don't exist
|
||||
def owner(self) -> str: ...
|
||||
def group(self) -> str: ...
|
||||
|
||||
# This method does "exist" on Windows on <3.12, but always raises NotImplementedError
|
||||
# On py312+, it works properly on Windows, as with all other platforms
|
||||
if sys.platform != "win32" or sys.version_info >= (3, 12):
|
||||
def is_mount(self) -> bool: ...
|
||||
|
||||
if sys.version_info >= (3, 9):
|
||||
|
||||
Reference in new issue
Block a user