diff -r 607e94e01851 -r f4733654f144 mercurial/hook.py --- a/mercurial/hook.py Mon Sep 16 15:36:38 2024 +0200 +++ b/mercurial/hook.py Mon Sep 16 15:36:44 2024 +0200 @@ -5,6 +5,7 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2 or any later version. +from __future__ import annotations import contextlib import errno