Skip to content

Add TYPE_CHECKING guard to prevent circular import#27

Merged
FelixCAAuer merged 1 commit intomainfrom
fix/typeGuardForUtilities
Feb 26, 2026
Merged

Add TYPE_CHECKING guard to prevent circular import#27
FelixCAAuer merged 1 commit intomainfrom
fix/typeGuardForUtilities

Conversation

@FelixCAAuer
Copy link
Contributor

No description provided.

Copilot AI review requested due to automatic review settings February 26, 2026 00:53
@FelixCAAuer FelixCAAuer merged commit 91e8229 into main Feb 26, 2026
2 checks passed
@FelixCAAuer FelixCAAuer deleted the fix/typeGuardForUtilities branch February 26, 2026 00:53
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR prevents a runtime circular import between Utilities.py and InOutModule.CaseStudy by making the CaseStudy import type-checking-only and enabling postponed evaluation of annotations.

Changes:

  • Added from __future__ import annotations so CaseStudy can be referenced in annotations without importing it at runtime.
  • Replaced the runtime CaseStudy import with a TYPE_CHECKING guard.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants