Rewrite `Loader._check_circular_deps()` to be iterative

Description

Just what it says on the tin

Changes proposed in this merge request:

  • loader.py: Rewrite _check_circular_deps() to be iterative

Merge request reports

Loading