comparison mercurial/logcmdutil.py @ 51307: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 278af66e6595
comparison
equal deleted inserted replaced
51306:7bd7fcc711f2 51307:f4a0806081f2
45 ) 45 )
46 from .utils import ( 46 from .utils import (
47 dateutil, 47 dateutil,
48 stringutil, 48 stringutil,
49 ) 49 )
50
51 # keeps pyflakes happy
52 assert [
53 Any,
54 Callable,
55 Dict,
56 Optional,
57 Sequence,
58 Tuple,
59 ]
60
61 # keep pyflakes happy
62 for t in (Any, Callable, Dict, Optional, Tuple):
63 assert t
64 50
65 51
66 def getlimit(opts): 52 def getlimit(opts):
67 """get the log limit according to option -l/--limit""" 53 """get the log limit according to option -l/--limit"""
68 limit = opts.get(b'limit') 54 limit = opts.get(b'limit')