treemanifest: subclass the new `repository.imanifestdict` Protocol class
authorMatt Harbison <matt_harbison@yahoo.com>
Tue, 17 Dec 2024 19:32:31 -0500
changeset 52990 e70f93318c26
parent 52989 d7174b43f3e6
child 52991 d297d80319b3
treemanifest: subclass the new `repository.imanifestdict` Protocol class I missed this in 6412dcec52d3 somehow. This is the same transformation as 3a90a6fd710d did for dirstate, but the CamelCase naming was already cleaned up here. See 4ef6dbc27a99 for the benefits of explicit subclassing.
mercurial/manifest.py
--- a/mercurial/manifest.py	Tue Dec 17 19:29:08 2024 -0500
+++ b/mercurial/manifest.py	Tue Dec 17 19:32:31 2024 -0500
@@ -850,7 +850,7 @@
 _noop = lambda s: None
 
 
-class treemanifest:  # (repository.imanifestdict)
+class treemanifest(repository.imanifestdict):
     _dir: bytes
     _dirs: Dict[bytes, treemanifest]
     _dirty: bool