From fce59577b8638073d2e2961175ea9256294c0c01 Mon Sep 17 00:00:00 2001 From: Danglewood <85772166+deeleeramone@users.noreply.github.com> Date: Fri, 4 Jul 2025 08:20:27 -0700 Subject: [PATCH] add future warning for deprecation of python 3.9 on import of openbb-core (#7158) --- openbb_platform/core/openbb_core/__init__.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/openbb_platform/core/openbb_core/__init__.py b/openbb_platform/core/openbb_core/__init__.py index 13627db21b0..095199932ae 100644 --- a/openbb_platform/core/openbb_core/__init__.py +++ b/openbb_platform/core/openbb_core/__init__.py @@ -1 +1,11 @@ """OpenBB Core.""" + +import sys +import warnings + +if sys.version_info < (3, 10): + warnings.warn( + "Support for Python versions below 3.10 will be deprecated in a future release of OpenBB Core.", + FutureWarning, + stacklevel=2, + )