typing: use python3-style type annotation
authorArseniy Alekseyev <aalekseyev@janestreet.com>
Wed, 11 Jan 2023 16:16:06 +0000
changeset 49893 5f664401dd03
parent 49892 c7624b1ac8b4
child 49894 678588b01af1
typing: use python3-style type annotation
mercurial/pathutil.py
--- 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."""