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

& yarnabrina [ENH] prevent imports in _check_soft_dependencies #340

Merged
merged 10 commits into from
Jul 12, 2024

Conversation

fkiraly
Copy link
Contributor

@fkiraly fkiraly commented Jun 29, 2024

The _check_soft_dependencies utility had inefficiencies and side effects, because to check the soft dependency being present, an import would be attempted, which can lead to circular imports or casacding imports.

This PR replaces the logic with an import-free check.

It also deprecates the argument suppress_import_stdout, as there is no longer any import, hence no stdout output that would be created.

Mirror of sktime/sktime#6355 which includes contributions by @yarnabrina, and of sktime/sktime#6719

@fkiraly fkiraly added implementing framework Implementing core skbase framework enhancement Adding new functionality labels Jun 29, 2024
@fkiraly fkiraly changed the title [ENH] prevent imports in _check_soft_dependencies & yarnabrina [ENH] prevent imports in _check_soft_dependencies Jun 29, 2024
@fkiraly fkiraly merged commit f09f148 into main Jul 12, 2024
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Adding new functionality implementing framework Implementing core skbase framework
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant