comparison mercurial/util.py @ 52879:b1daf3064362

typing: make `mercurial.util.cowsortdict` a generic class
author Matt Harbison <matt_harbison@yahoo.com>
date Fri, 20 Dec 2024 21:14:30 -0500
parents 7ca9c05ec335
children f4dd447e6efd
comparison
equal deleted inserted replaced
52878:7ca9c05ec335 52879:b1daf3064362
1421 >>> b is b.preparewrite() 1421 >>> b is b.preparewrite()
1422 True 1422 True
1423 """ 1423 """
1424 1424
1425 1425
1426 class cowsortdict(cow, sortdict): 1426 class cowsortdict(cow, sortdict[_KT, _VT]):
1427 """copy-on-write sortdict 1427 """copy-on-write sortdict
1428 1428
1429 Be sure to call d = d.preparewrite() before writing to d. 1429 Be sure to call d = d.preparewrite() before writing to d.
1430 """ 1430 """
1431 1431