Module Cyclic

Import path

Imports.Cyclic

Imports

Predicates

circular_import

Is there a circular import of ‘m1’ beginning with ‘m2’?

failing_import_due_to_cycle

Whether importing module ‘first’ before importing module ‘other’ will fail at runtime, due to an AttributeError at ‘use’ (in module ‘other’) caused by ‘first.attr’ not being defined as its definition can occur after the import ‘other’ in ‘first’.

import_time_circular_import

Is there a cyclic import of ‘m1’ beginning with an import ‘m2’ at ‘imp’ where all the imports are top-level?

import_time_imported_module
import_time_module_use

Returns import-time usages of module ‘m’ in module ‘enclosing’

import_time_transitive_import
is_import_time
module_imported_by
stmt_imports