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

Module ImportTime

Import path

import semmle.python.types.ImportTime

Imports

Classes

ImportTimeScope

An ImportTimeScope is any scope that is not nested within a function and will thus be executed if its enclosing module is imported. Note however, that if a scope is not an ImportTimeScope it may still be executed at import time. This is an artificial approximation, which is necessary for static analysis.