Skip to content

Comments

refactor(error_callback): fix linter error in init "Module level import not at top of file"#60

Merged
eliteprox merged 2 commits intomainfrom
feat/error-callback
Nov 10, 2025
Merged

refactor(error_callback): fix linter error in init "Module level import not at top of file"#60
eliteprox merged 2 commits intomainfrom
feat/error-callback

Conversation

@eliteprox
Copy link
Collaborator

@eliteprox eliteprox commented Nov 8, 2025

This change resolves a linter error "Module level import not at top of file" by moving the ErrorCallback type from the __init__.py file to the base class. This change improves code quality, generally types should not be defined in the init.

Moving type declaration to the bottom of imports in __init__.py caused circular import errors when installed as editable, so refactoring was the best option

* Moved the ErrorCallback type alias definition from __init__.py to base.py for better organization.
* Updated imports in __init__.py to reflect the new location of ErrorCallback.
@eliteprox eliteprox requested a review from JJassonn69 November 10, 2025 20:16
Copy link
Collaborator

@pschroedl pschroedl left a comment

Choose a reason for hiding this comment

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

👍

@eliteprox eliteprox merged commit 4770727 into main Nov 10, 2025
1 check 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