pylint-errors

R0401 (cyclic-import)

:x: Problematic code:

cat > a.py <<EOF
import b
EOF

cat > b.py <<EOF
import a
EOF

:heavy_check_mark: Correct code:

cat > intermediate.py <<EOF
import a
import b

# do some actions with `a` and `b` modules
EOF

cat > a.py <<EOF
# do some action
EOF

cat > b.py <<EOF
# do some action
EOF

Rationale:

Used when a cyclic import between two or more modules is detected.