Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix circular import #59

Merged
merged 4 commits into from
Aug 8, 2024
Merged

fix circular import #59

merged 4 commits into from
Aug 8, 2024

Conversation

rerpha
Copy link
Contributor

@rerpha rerpha commented Aug 7, 2024

No description provided.

@@ -213,7 +227,7 @@ def add_mode(name, is_disabled=False):
return name


def add_driver(driver, marker=None):
def add_driver(driver: IocDriver, marker: Union[int, None] = None) -> IocDriver:
Copy link
Contributor

Choose a reason for hiding this comment

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

Just fyi (not important for this PR), you can use int | None for this type hint, and generally TypeA | TypeB | TypeC where previously Union[TypeA, TypeB, TypeC] might have been used.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ah cheers. i did that originally (after switching from typescript...!) and thought it was weird the IDE wasn't moaning at me.

@Tom-Willemsen Tom-Willemsen merged commit 4ad61bd into master Aug 8, 2024
2 checks passed
@Tom-Willemsen Tom-Willemsen deleted the fix_circular_import branch August 8, 2024 08:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants