mercurial/encoding.py
changeset 51287 f4a0806081f2
parent 51284 f15cb5111a1e
child 51669 f70f61a8c5bc
--- a/mercurial/encoding.py	Wed Dec 20 16:39:03 2023 +0100
+++ b/mercurial/encoding.py	Wed Dec 20 22:17:03 2023 +0100
@@ -15,11 +15,8 @@
 from typing import (
     Any,
     Callable,
-    List,
     Text,
-    Type,
     TypeVar,
-    Union,
 )
 
 from . import (
@@ -30,10 +27,6 @@
 
 from .pure import charencode as charencodepure
 
-# keep pyflakes happy
-for t in (Any, Callable, List, Text, Type, Union):
-    assert t
-
 _Tlocalstr = TypeVar('_Tlocalstr', bound='localstr')
 
 charencode = policy.importmod('charencode')