Skip to content

Commit

Permalink
Update os.DirEntry to 3.12 (#10643)
Browse files Browse the repository at this point in the history
  • Loading branch information
sobolevn committed Aug 31, 2023
1 parent 8a2019a commit f28cb8b
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 3 deletions.
2 changes: 2 additions & 0 deletions stdlib/os/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,8 @@ class DirEntry(Generic[AnyStr]):
def __fspath__(self) -> AnyStr: ...
if sys.version_info >= (3, 9):
def __class_getitem__(cls, item: Any) -> GenericAlias: ...
if sys.version_info >= (3, 12):
def is_junction(self) -> bool: ...

@final
class statvfs_result(structseq[int], tuple[int, int, int, int, int, int, int, int, int, int, int]):
Expand Down
1 change: 0 additions & 1 deletion tests/stubtest_allowlists/darwin-py312.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ os.PRIO_DARWIN_BG
os.PRIO_DARWIN_NONUI
os.PRIO_DARWIN_PROCESS
os.PRIO_DARWIN_THREAD
posix.DirEntry.is_junction
posix.PRIO_DARWIN_BG
posix.PRIO_DARWIN_NONUI
posix.PRIO_DARWIN_PROCESS
Expand Down
1 change: 0 additions & 1 deletion tests/stubtest_allowlists/linux-py312.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ _posixsubprocess.fork_exec
(os|posix).CLONE_SYSVSEM
(os|posix).CLONE_THREAD
(os|posix).CLONE_VM
(os|posix).DirEntry.is_junction
(os|posix).EFD_CLOEXEC
(os|posix).EFD_NONBLOCK
(os|posix).EFD_SEMAPHORE
Expand Down
1 change: 0 additions & 1 deletion tests/stubtest_allowlists/py312.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ importlib.resources.files
importlib.util.module_for_loader
importlib.util.set_loader
importlib.util.set_package
os.DirEntry.is_junction
pathlib.Path.__init__
pathlib.PurePath.__init__
pathlib.PurePath.is_relative_to
Expand Down

0 comments on commit f28cb8b

Please sign in to comment.