--- a/mercurial/utils/dateutil.py Wed Nov 08 01:58:16 2023 +0100
+++ b/mercurial/utils/dateutil.py Wed Dec 20 12:51:20 2023 +0100
@@ -10,6 +10,15 @@
import datetime
import time
+from typing import (
+ Callable,
+ Dict,
+ Iterable,
+ Optional,
+ Tuple,
+ Union,
+)
+
from ..i18n import _
from .. import (
encoding,
@@ -17,17 +26,17 @@
pycompat,
)
-if pycompat.TYPE_CHECKING:
- from typing import (
- Callable,
- Dict,
- Iterable,
- Optional,
- Tuple,
- Union,
- )
+# keeps pyflakes happy
+assert [
+ Callable,
+ Dict,
+ Iterable,
+ Optional,
+ Tuple,
+ Union,
+]
- hgdate = Tuple[float, int] # (unixtime, offset)
+hgdate = Tuple[float, int] # (unixtime, offset)
# used by parsedate
defaultdateformats = (