Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
scons ファイル ( 、 ) のflake8検証に使用したい。は SCons モジュールを暗黙的にインポートするため、、、 などの名前がデフォルトで使用可能です。flake8 はそれらを認識せず、「未定義の名前 'Glob' [F821]」警告をドロップします。SConstructSConscriptsconsProgramGlobCommand
flake8
SConstruct
SConscript
scons
Program
Glob
Command
どうすればこれを解決できますか?
私が使用した暗黙的なインポートについては、たとえば次のように明示的にすることができます。
from SCons.Script import (Command, Glob, Program)