Pylint doesn&#x27;t actually import the code, just parses and processes the resulting AST, which is in my opinion how it should be done.<p>The guard is useful if your code is already composed of multiple functions&#x2F;classes, which could be called from outside without running the full logic, but in this case I&#x27;m not sure it applies.