fncachestore: add typing information
authorRaphaël Gomès <rgomes@octobus.net>
Mon, 29 Jul 2024 20:34:38 +0200
changeset 52174 9fbdf355c916
parent 52173 ba9df4e6abb8
child 52175 bd43465af568
fncachestore: add typing information This helps with autocomplete.
mercurial/store.py
--- a/mercurial/store.py	Mon Jul 29 20:34:06 2024 +0200
+++ b/mercurial/store.py	Mon Jul 29 20:34:38 2024 +0200
@@ -1120,7 +1120,7 @@
 class _fncachevfs(vfsmod.proxyvfs):
     def __init__(self, vfs, fnc, encode):
         vfsmod.proxyvfs.__init__(self, vfs)
-        self.fncache = fnc
+        self.fncache: fncache = fnc
         self.encode = encode
 
     def __call__(self, path, mode=b'r', *args, **kw):