typing: add type annotations to `mercurial.util.makelock()`
authorMatt Harbison <matt_harbison@yahoo.com>
Fri, 20 Sep 2024 01:10:17 -0400
changeset 51926 cbd01bf33802
parent 51925 f833ad92ee44
child 51927 38720073aa34
typing: add type annotations to `mercurial.util.makelock()` This bubbles up into the `vfs` classes, so get this out of the way.
mercurial/util.py
--- a/mercurial/util.py	Fri Sep 20 00:20:24 2024 -0400
+++ b/mercurial/util.py	Fri Sep 20 01:10:17 2024 -0400
@@ -2185,7 +2185,7 @@
         timer = time.time
 
 
-def makelock(info, pathname):
+def makelock(info: bytes, pathname: bytes) -> None:
     """Create a lock file atomically if possible
 
     This may leave a stale lock file if symlink isn't supported and signal