##// END OF EJS Templates
typing: add type hints to the `opener` attributes and arguments of revlog...
Matt Harbison -
r52713:71fb6e0a default
parent child Browse files
Show More
@@ -91,6 +91,7 b' from . import ('
91 revlogutils,
91 revlogutils,
92 templatefilters,
92 templatefilters,
93 util,
93 util,
94 vfs as vfsmod,
94 )
95 )
95 from .interfaces import (
96 from .interfaces import (
96 repository,
97 repository,
@@ -363,9 +364,11 b' class _InnerRevlog:'
363 boundaries are arbitrary and based on what we can delegate to Rust.
364 boundaries are arbitrary and based on what we can delegate to Rust.
364 """
365 """
365
366
367 opener: vfsmod.vfs
368
366 def __init__(
369 def __init__(
367 self,
370 self,
368 opener,
371 opener: vfsmod.vfs,
369 index,
372 index,
370 index_file,
373 index_file,
371 data_file,
374 data_file,
@@ -1293,6 +1296,8 b' class revlog:'
1293
1296
1294 _flagserrorclass = error.RevlogError
1297 _flagserrorclass = error.RevlogError
1295
1298
1299 opener: vfsmod.vfs
1300
1296 @staticmethod
1301 @staticmethod
1297 def is_inline_index(header_bytes):
1302 def is_inline_index(header_bytes):
1298 """Determine if a revlog is inline from the initial bytes of the index"""
1303 """Determine if a revlog is inline from the initial bytes of the index"""
@@ -1311,7 +1316,7 b' class revlog:'
1311
1316
1312 def __init__(
1317 def __init__(
1313 self,
1318 self,
1314 opener,
1319 opener: vfsmod.vfs,
1315 target,
1320 target,
1316 radix,
1321 radix,
1317 postfix=None, # only exist for `tmpcensored` now
1322 postfix=None, # only exist for `tmpcensored` now
General Comments 0
You need to be logged in to leave comments. Login now