diff -r 438f4fca513e -r 71fb6e0a7a35 mercurial/revlog.py --- a/mercurial/revlog.py Wed Aug 21 16:09:22 2024 -0400 +++ b/mercurial/revlog.py Wed Aug 21 16:13:14 2024 -0400 @@ -91,6 +91,7 @@ revlogutils, templatefilters, util, + vfs as vfsmod, ) from .interfaces import ( repository, @@ -363,9 +364,11 @@ boundaries are arbitrary and based on what we can delegate to Rust. """ + opener: vfsmod.vfs + def __init__( self, - opener, + opener: vfsmod.vfs, index, index_file, data_file, @@ -1293,6 +1296,8 @@ _flagserrorclass = error.RevlogError + opener: vfsmod.vfs + @staticmethod def is_inline_index(header_bytes): """Determine if a revlog is inline from the initial bytes of the index""" @@ -1311,7 +1316,7 @@ def __init__( self, - opener, + opener: vfsmod.vfs, target, radix, postfix=None, # only exist for `tmpcensored` now