changeset 46698:f64806207752 stable

typing: disable a module-attr warning in the worker module's py2 code Differential Revision: https://phab.mercurial-scm.org/D10183
author Matt Harbison <matt_harbison@yahoo.com>
date Thu, 11 Mar 2021 21:09:55 -0500
parents 71443f742886
children 184e0ae0a4b2
files mercurial/worker.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/worker.py	Thu Mar 11 21:07:04 2021 -0500
+++ b/mercurial/worker.py	Thu Mar 11 21:09:55 2021 -0500
@@ -104,7 +104,9 @@
 else:
 
     def ismainthread():
+        # pytype: disable=module-attr
         return isinstance(threading.current_thread(), threading._MainThread)
+        # pytype: enable=module-attr
 
     def _blockingreader(wrapped):
         return wrapped