# HG changeset patch # User Matt Harbison # Date 1615514995 18000 # 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 -r 71443f742886 -r f64806207752 mercurial/worker.py --- 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