Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f28cb8b

Browse files
authored
Update os.DirEntry to 3.12 (#10643)
1 parent 8a2019a commit f28cb8b

File tree

4 files changed

+2
-3
lines changed

4 files changed

+2
-3
lines changed

stdlib/os/__init__.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,8 @@ class DirEntry(Generic[AnyStr]):
388388
def __fspath__(self) -> AnyStr: ...
389389
if sys.version_info >= (3, 9):
390390
def __class_getitem__(cls, item: Any) -> GenericAlias: ...
391+
if sys.version_info >= (3, 12):
392+
def is_junction(self) -> bool: ...
391393

392394
@final
393395
class statvfs_result(structseq[int], tuple[int, int, int, int, int, int, int, int, int, int, int]):

tests/stubtest_allowlists/darwin-py312.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ os.PRIO_DARWIN_BG
88
os.PRIO_DARWIN_NONUI
99
os.PRIO_DARWIN_PROCESS
1010
os.PRIO_DARWIN_THREAD
11-
posix.DirEntry.is_junction
1211
posix.PRIO_DARWIN_BG
1312
posix.PRIO_DARWIN_NONUI
1413
posix.PRIO_DARWIN_PROCESS

tests/stubtest_allowlists/linux-py312.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ _posixsubprocess.fork_exec
1313
(os|posix).CLONE_SYSVSEM
1414
(os|posix).CLONE_THREAD
1515
(os|posix).CLONE_VM
16-
(os|posix).DirEntry.is_junction
1716
(os|posix).EFD_CLOEXEC
1817
(os|posix).EFD_NONBLOCK
1918
(os|posix).EFD_SEMAPHORE

tests/stubtest_allowlists/py312.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ importlib.resources.files
3333
importlib.util.module_for_loader
3434
importlib.util.set_loader
3535
importlib.util.set_package
36-
os.DirEntry.is_junction
3736
pathlib.Path.__init__
3837
pathlib.PurePath.__init__
3938
pathlib.PurePath.is_relative_to

0 commit comments

Comments
 (0)