comparison mercurial/pathutil.py @ 49893: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 15175774e1c5
comparison
equal deleted inserted replaced
49892:c7624b1ac8b4 49893:5f664401dd03
127 break 127 break
128 128
129 if self._cached: 129 if self._cached:
130 self.audited.add(path) 130 self.audited.add(path)
131 131
132 def _checkfs_exists(self, prefix, path): 132 def _checkfs_exists(self, prefix: bytes, path: bytes) -> bool:
133 # type: (bytes, bytes) -> bool
134 """raise exception if a file system backed check fails. 133 """raise exception if a file system backed check fails.
135 134
136 Return a bool that indicates that the directory (or file) exists.""" 135 Return a bool that indicates that the directory (or file) exists."""
137 curpath = os.path.join(self.root, prefix) 136 curpath = os.path.join(self.root, prefix)
138 try: 137 try: