diff mercurial/branchmap.py @ 51290:f4a0806081f2

pytype: drop the now useless assert As the imported types are now used by type annotation, these ugly assert are no longer needed.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 20 Dec 2023 22:17:03 +0100
parents f15cb5111a1e
children 02e7d79edf62
line wrap: on
line diff
--- a/mercurial/branchmap.py	Wed Dec 20 16:39:03 2023 +0100
+++ b/mercurial/branchmap.py	Wed Dec 20 22:17:03 2023 +0100
@@ -15,7 +15,6 @@
 )
 
 from typing import (
-    Any,
     Callable,
     Dict,
     Iterable,
@@ -40,19 +39,6 @@
     stringutil,
 )
 
-# keeps pyflakes happy
-assert [
-    Any,
-    Callable,
-    Dict,
-    Iterable,
-    List,
-    Optional,
-    Set,
-    Tuple,
-    Union,
-]
-
 if TYPE_CHECKING:
     from . import localrepo