changeset 51889:cbd01bf33802

typing: add type annotations to `mercurial.util.makelock()` This bubbles up into the `vfs` classes, so get this out of the way.
author Matt Harbison <matt_harbison@yahoo.com>
date Fri, 20 Sep 2024 01:10:17 -0400
parents f833ad92ee44
children 38720073aa34
files mercurial/util.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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