diff mercurial/logcmdutil.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 c9301ac73b95
children 064c9a4ced4a
line wrap: on
line diff
--- a/mercurial/logcmdutil.py	Tue Nov 19 23:19:57 2019 +0900
+++ b/mercurial/logcmdutil.py	Tue Nov 19 23:49:05 2019 +0900
@@ -42,7 +42,7 @@
 )
 
 
-if not globals():
+if pycompat.TYPE_CHECKING:
     from typing import (
         Any,
         Tuple,