CodeQL library for Python
codeql/python-all 0.7.1 (changelog, source)
Search

Member predicate Scope::isTopLevel

Holds if this a top-level (non-nested) class or function

predicate isTopLevel()