# HG changeset patch # User Pierre-Yves David # Date 1708509896 -3600 # Node ID 774e4eff6e472070ba8c626703e848a09a17857d # Parent eababb7b4a82b7056aadf5c5d14331e3ae199e52 phases: type annotation for `_phasesets` Does not hurt. diff -r eababb7b4a82 -r 774e4eff6e47 mercurial/phases.py --- a/mercurial/phases.py Tue Feb 20 23:46:21 2024 +0100 +++ b/mercurial/phases.py Wed Feb 21 11:04:56 2024 +0100 @@ -134,6 +134,7 @@ ) Phaseroots = Dict[int, Set[int]] +PhaseSets = Dict[int, Set[int]] if typing.TYPE_CHECKING: from . import ( @@ -377,7 +378,7 @@ self._phaseroots: Phaseroots = loaded[0] self.dirty: bool = loaded[1] self._loadedrevslen = 0 - self._phasesets = None + self._phasesets: PhaseSets = None def hasnonpublicphases(self, repo: "localrepo.localrepository") -> bool: """detect if there are revisions with non-public phase"""