mercurial/encoding.py
changeset 51287 f4a0806081f2
parent 51284 f15cb5111a1e
child 51669 f70f61a8c5bc
equal deleted inserted replaced
51286:7bd7fcc711f2 51287:f4a0806081f2
    13 import unicodedata
    13 import unicodedata
    14 
    14 
    15 from typing import (
    15 from typing import (
    16     Any,
    16     Any,
    17     Callable,
    17     Callable,
    18     List,
       
    19     Text,
    18     Text,
    20     Type,
       
    21     TypeVar,
    19     TypeVar,
    22     Union,
       
    23 )
    20 )
    24 
    21 
    25 from . import (
    22 from . import (
    26     error,
    23     error,
    27     policy,
    24     policy,
    28     pycompat,
    25     pycompat,
    29 )
    26 )
    30 
    27 
    31 from .pure import charencode as charencodepure
    28 from .pure import charencode as charencodepure
    32 
       
    33 # keep pyflakes happy
       
    34 for t in (Any, Callable, List, Text, Type, Union):
       
    35     assert t
       
    36 
    29 
    37 _Tlocalstr = TypeVar('_Tlocalstr', bound='localstr')
    30 _Tlocalstr = TypeVar('_Tlocalstr', bound='localstr')
    38 
    31 
    39 charencode = policy.importmod('charencode')
    32 charencode = policy.importmod('charencode')
    40 
    33