Skip to content

Fix import hook - #107

Merged
alexmojaki merged 1 commit into
masterfrom
alex/fix-hook
Sep 6, 2025
Merged

alexmojaki merged 1 commit into
masterfrom
alex/fix-hook

Conversation

@alexmojaki

Copy link
Copy Markdown
Owner

No description provided.

@alexmojaki
alexmojaki requested a review from Copilot September 6, 2025 15:13

Copilot AI left a comment

Copy link
Copy Markdown

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 refactors the import hook system to improve code organization and error handling. It modernizes the code with type annotations and replaces the single-spec finding approach with an iterator-based approach that can handle multiple module specs.

  • Adds modern Python type annotations and imports
  • Refactors spec finding logic to use an iterator pattern for better error handling
  • Improves code structure by removing outdated comments and simplifying class definitions

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread birdseye/import_hook.py
Comment thread birdseye/import_hook.py
@alexmojaki
alexmojaki merged commit 753f664 into master Sep 6, 2025
6 checks passed
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