diff -r 58d39c7865e5 -r 9d3721552b6c mercurial/upgrade_utils/actions.py --- a/mercurial/upgrade_utils/actions.py Wed Nov 08 01:58:16 2023 +0100 +++ b/mercurial/upgrade_utils/actions.py Wed Dec 20 12:51:20 2023 +0100 @@ -7,11 +7,15 @@ import random +from typing import ( + List, + Type, +) + from ..i18n import _ from .. import ( error, localrepo, - pycompat, requirements, revlog, util, @@ -19,12 +23,11 @@ from ..utils import compression -if pycompat.TYPE_CHECKING: - from typing import ( - List, - Type, - ) - +# keeps pyflakes happy +assert [ + List, + Type, +] # list of requirements that request a clone of all revlog if added/removed RECLONES_REQUIREMENTS = {