# HG changeset patch # User Matt Harbison # Date 2021-03-12 02:09:55 # Node ID f648062077523e6663c07bb24314d7008b32118f # Parent 71443f742886c4b4982621c0c169cc1c90db488b typing: disable a module-attr warning in the worker module's py2 code Differential Revision: https://phab.mercurial-scm.org/D10183 diff --git a/mercurial/worker.py b/mercurial/worker.py --- a/mercurial/worker.py +++ b/mercurial/worker.py @@ -104,7 +104,9 @@ if pycompat.ispy3: else: def ismainthread(): + # pytype: disable=module-attr return isinstance(threading.current_thread(), threading._MainThread) + # pytype: enable=module-attr def _blockingreader(wrapped): return wrapped