comparison mercurial/state.py @ 43773: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 127d46468a45
children 5322e738be0f
comparison
equal deleted inserted replaced
43772:ee3872c14ab3 43773:7b14d649af1b
21 21
22 from .i18n import _ 22 from .i18n import _
23 23
24 from . import ( 24 from . import (
25 error, 25 error,
26 pycompat,
26 util, 27 util,
27 ) 28 )
28 from .utils import cborutil 29 from .utils import cborutil
29 30
30 if not globals(): 31 if pycompat.TYPE_CHECKING:
31 from typing import ( 32 from typing import (
32 Any, 33 Any,
33 Dict, 34 Dict,
34 ) 35 )
35 36