From df0fb6b43ab70e1b0b787aba4d3853ee1c5e6db1 Mon Sep 17 00:00:00 2001 From: William Deegan Date: Mon, 5 Dec 2022 09:36:16 -0800 Subject: [ci skip] Add pylint annotation and comment regarding importing GetOption in a method instead of at top of file. (Thanks mwichmann for providing feedback and pylint syntax) --- SCons/Taskmaster/Job.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/SCons/Taskmaster/Job.py b/SCons/Taskmaster/Job.py index 81bf5e4..a63b529 100644 --- a/SCons/Taskmaster/Job.py +++ b/SCons/Taskmaster/Job.py @@ -83,6 +83,10 @@ class Jobs: class can't do it, it gets reset to 1. Wrapping interfaces that care should check the value of 'num_jobs' after initialization. """ + + # Importing GetOption here instead of at top of file to avoid + # circular imports + # pylint: disable=import-outside-toplevel from SCons.Script import GetOption self.job = None -- cgit v0.12