Mercurial > hg-stable
changeset 49969:5f664401dd03
typing: use python3-style type annotation
author | Arseniy Alekseyev <aalekseyev@janestreet.com> |
---|---|
date | Wed, 11 Jan 2023 16:16:06 +0000 |
parents | c7624b1ac8b4 |
children | 678588b01af1 |
files | mercurial/pathutil.py |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/pathutil.py Wed Jan 04 17:14:33 2023 +0000 +++ b/mercurial/pathutil.py Wed Jan 11 16:16:06 2023 +0000 @@ -129,8 +129,7 @@ if self._cached: self.audited.add(path) - def _checkfs_exists(self, prefix, path): - # type: (bytes, bytes) -> bool + def _checkfs_exists(self, prefix: bytes, path: bytes) -> bool: """raise exception if a file system backed check fails. Return a bool that indicates that the directory (or file) exists."""