diff mercurial/i18n.py @ 51287: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 8b2ea2246a5f
children 493034cc3265
line wrap: on
line diff
--- a/mercurial/i18n.py	Wed Dec 20 16:39:03 2023 +0100
+++ b/mercurial/i18n.py	Wed Dec 20 22:17:03 2023 +0100
@@ -12,7 +12,6 @@
 import sys
 
 from typing import (
-    Callable,
     List,
 )
 
@@ -22,12 +21,6 @@
     pycompat,
 )
 
-# keeps pyflakes happy
-assert [
-    Callable,
-    List,
-]
-
 # modelled after templater.templatepath:
 if getattr(sys, 'frozen', None) is not None:
     module = pycompat.sysexecutable