mercurial/error.py
changeset 51290 f4a0806081f2
parent 51288 8b2ea2246a5f
--- a/mercurial/error.py	Wed Dec 20 16:39:03 2023 +0100
+++ b/mercurial/error.py	Wed Dec 20 22:17:03 2023 +0100
@@ -15,7 +15,6 @@
 import difflib
 
 from typing import (
-    Any,
     AnyStr,
     Iterable,
     List,
@@ -28,18 +27,6 @@
 from . import pycompat
 
 
-# keeps pyflakes happy
-assert [
-    Any,
-    AnyStr,
-    Iterable,
-    List,
-    Optional,
-    Sequence,
-    Union,
-]
-
-
 def _tobytes(exc) -> bytes:
     """Byte-stringify exception in the same way as BaseException_str()"""
     if not exc.args: