comparison mercurial/cmdutil.py @ 43793:7b14d649af1b

typing: consolidate "if not globals():" trick Removes redundant inline comments. I think pycompat is good place to host this kind of constants.
author Yuya Nishihara <yuya@tcha.org>
date Tue, 19 Nov 2019 23:49:05 +0900
parents 71dbd6f6fcb8
children 5558e3437872
comparison
equal deleted inserted replaced
43792:ee3872c14ab3 43793:7b14d649af1b
59 from .utils import ( 59 from .utils import (
60 dateutil, 60 dateutil,
61 stringutil, 61 stringutil,
62 ) 62 )
63 63
64 if not globals(): 64 if pycompat.TYPE_CHECKING:
65 from typing import ( 65 from typing import (
66 Any, 66 Any,
67 Dict, 67 Dict,
68 ) 68 )
69 69