Skip to content

Commit a7f1e89

Browse files
committed
os.path.exists (Py 3) accepts a file descriptor
Closes python#1653
1 parent 5cda422 commit a7f1e89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/3/os/path.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ elif sys.version_info >= (3, 5):
100100
# So, fall back to Any
101101
def commonprefix(list: Sequence[_PathType]) -> Any: ...
102102

103-
def exists(path: _PathType) -> bool: ...
103+
def exists(path: Union[_PathType, int]) -> bool: ...
104104
def lexists(path: _PathType) -> bool: ...
105105

106106
# These return float if os.stat_float_times() == True,

0 commit comments

Comments
 (0)