comparison mercurial/branchmap.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 5cdc3c1292f6
children a0ec05d93c8e
comparison
equal deleted inserted replaced
43792:ee3872c14ab3 43793:7b14d649af1b
25 from .utils import ( 25 from .utils import (
26 repoviewutil, 26 repoviewutil,
27 stringutil, 27 stringutil,
28 ) 28 )
29 29
30 if not globals(): 30 if pycompat.TYPE_CHECKING:
31 from typing import ( 31 from typing import (
32 Any, 32 Any,
33 Callable, 33 Callable,
34 Dict, 34 Dict,
35 Iterable, 35 Iterable,