From b4d1da03aadea7fc313ab7f02768a09e1c6ce9e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20Schoentgen?= Date: Sun, 5 Jan 2020 16:04:52 +0100 Subject: [PATCH] Add missing Path.is_mount() introduced in Python 3.7 (#3566) --- stdlib/3/pathlib.pyi | 2 ++ third_party/2/pathlib2.pyi | 2 ++ 2 files changed, 4 insertions(+) diff --git a/stdlib/3/pathlib.pyi b/stdlib/3/pathlib.pyi index 7871efa04..b470d1f0d 100644 --- a/stdlib/3/pathlib.pyi +++ b/stdlib/3/pathlib.pyi @@ -77,6 +77,8 @@ class Path(PurePath): def group(self) -> str: ... def is_dir(self) -> bool: ... def is_file(self) -> bool: ... + if sys.version_info >= (3, 7): + def is_mount(self) -> bool: ... def is_symlink(self) -> bool: ... def is_socket(self) -> bool: ... def is_fifo(self) -> bool: ... diff --git a/third_party/2/pathlib2.pyi b/third_party/2/pathlib2.pyi index 7871efa04..b470d1f0d 100644 --- a/third_party/2/pathlib2.pyi +++ b/third_party/2/pathlib2.pyi @@ -77,6 +77,8 @@ class Path(PurePath): def group(self) -> str: ... def is_dir(self) -> bool: ... def is_file(self) -> bool: ... + if sys.version_info >= (3, 7): + def is_mount(self) -> bool: ... def is_symlink(self) -> bool: ... def is_socket(self) -> bool: ... def is_fifo(self) -> bool: ...