Merge pull request #1299 from ynput/enhancement/1295-product-base-types-feature-support

🏛️Product base types: feature support check function
This commit is contained in:
Jakub Trllo 2025-06-13 12:16:15 +02:00 committed by GitHub
commit f8ff18f3a7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 23 additions and 0 deletions

View file

@ -100,6 +100,10 @@ from .context_tools import (
get_current_task_name
)
from .compatibility import (
is_product_base_type_supported,
)
from .workfile import (
discover_workfile_build_plugins,
register_workfile_build_plugin,
@ -223,4 +227,7 @@ __all__ = (
# Backwards compatible function names
"install",
"uninstall",
# Feature detection
"is_product_base_type_supported",
)

View file

@ -0,0 +1,16 @@
"""Package to handle compatibility checks for pipeline components."""
def is_product_base_type_supported() -> bool:
"""Check support for product base types.
This function checks if the current pipeline supports product base types.
Once this feature is implemented, it will return True. This should be used
in places where some kind of backward compatibility is needed to avoid
breaking existing functionality that relies on the current behavior.
Returns:
bool: True if product base types are supported, False otherwise.
"""
return False