Annotate pathlib.Path.{owner,group,is_mount} on windows (#13613)

This commit is contained in:
Joren Hammudoglu
2025-03-11 18:45:40 +01:00
committed by GitHub
parent d04d532337
commit 28106bcb73
5 changed files with 11 additions and 51 deletions
@@ -44,16 +44,6 @@ xml.parsers.expat.XMLParserType.SetReparseDeferralEnabled
xml.sax.expatreader.ExpatParser.flush
# =============================================================
# Allowlist entries that cannot or should not be fixed; <= 3.11
# =============================================================
# pathlib methods that exist on Windows, but always raise NotImplementedError,
# so are omitted from the stub
pathlib.Path.is_mount
pathlib.WindowsPath.is_mount
# =============================================================
# Allowlist entries that cannot or should not be fixed; <= 3.12
# =============================================================
@@ -63,7 +53,3 @@ crypt
nis
ossaudiodev
spwd
# pathlib functions that rely on modules that don't exist on Windows
pathlib.Path.owner
pathlib.Path.group
@@ -11,16 +11,6 @@ email.utils.getaddresses
email.utils.parseaddr
# =============================================================
# Allowlist entries that cannot or should not be fixed; <= 3.11
# =============================================================
# pathlib methods that exist on Windows, but always raise NotImplementedError,
# so are omitted from the stub
pathlib.Path.is_mount
pathlib.WindowsPath.is_mount
# =============================================================
# Allowlist entries that cannot or should not be fixed; <= 3.12
# =============================================================
@@ -30,7 +20,3 @@ crypt
nis
ossaudiodev
spwd
# pathlib functions that rely on modules that don't exist on Windows
pathlib.Path.owner
pathlib.Path.group
@@ -25,7 +25,3 @@ crypt
nis
ossaudiodev
spwd
# pathlib functions that rely on modules that don't exist on Windows
pathlib.Path.owner
pathlib.Path.group
@@ -53,16 +53,6 @@ xml.parsers.expat.XMLParserType.SetReparseDeferralEnabled
xml.sax.expatreader.ExpatParser.flush
# =============================================================
# Allowlist entries that cannot or should not be fixed; <= 3.11
# =============================================================
# pathlib methods that exist on Windows, but always raise NotImplementedError,
# so are omitted from the stub
pathlib.Path.is_mount
pathlib.WindowsPath.is_mount
# =============================================================
# Allowlist entries that cannot or should not be fixed; <= 3.12
# =============================================================
@@ -72,7 +62,3 @@ crypt
nis
ossaudiodev
spwd
# pathlib functions that rely on modules that don't exist on Windows
pathlib.Path.owner
pathlib.Path.group