From 424cd96fef7f519d73872419e2651b1cec7ddea0 Mon Sep 17 00:00:00 2001 From: Dion Moult Date: Wed, 29 Jan 2025 19:53:50 +1100 Subject: [PATCH] Add warning that api.run is deprecated --- src/ifcopenshell-python/ifcopenshell/api/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ifcopenshell-python/ifcopenshell/api/__init__.py b/src/ifcopenshell-python/ifcopenshell/api/__init__.py index bd4498b975..31e2cff06e 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/__init__.py +++ b/src/ifcopenshell-python/ifcopenshell/api/__init__.py @@ -82,6 +82,7 @@ def run( should_run_listeners: bool = True, **settings: Any, ) -> Any: + """This is deprecated and will be removed in a future version. Do not use this function.""" usecase_function = CACHED_USECASES.get(usecase_path) if not usecase_function: importlib.import_module(f"ifcopenshell.api.{usecase_path}")