Skip to content

Conversation

@jwaldrop107
Copy link
Member

@jwaldrop107 jwaldrop107 commented Sep 9, 2025

Is this pull request associated with an issue(s)?
No.

Description
Currently, it's possible to use python bindings for a property type in a downstream library (such as SimDE) without first importing the python bindings for PluginPlay itself. This situation can result in errors when the return types of some functions may not be loaded in Python, e.g. calling some_property_type.inputs() trying to return an input_map without the corresponding bindings being loaded. Similarly, ModuleManager.get_runtime() can attempt to return a Runtime without the ParallelZone bindings being loaded (though this is less common because of runtime usage and behavior). These changes add importing the required dependencies as a part of the export functions for the corresponding types.

@jwaldrop107 jwaldrop107 self-assigned this Sep 9, 2025
@jwaldrop107 jwaldrop107 requested a review from zachcran September 9, 2025 20:13
@jwaldrop107 jwaldrop107 enabled auto-merge (squash) September 9, 2025 20:13
@jwaldrop107 jwaldrop107 merged commit 49aa7b9 into master Sep 9, 2025
5 checks passed
@jwaldrop107 jwaldrop107 deleted the python_bindings_dependencies branch September 9, 2025 20:57
@github-actions
Copy link
Contributor

github-actions bot commented Sep 9, 2025

🚀 [bumpr] Bumped!
New version:v1.0.50
Changes:v1.0.49...v1.0.50

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.

4 participants