gopidesupavan commented on code in PR #42081:
URL: https://github.com/apache/airflow/pull/42081#discussion_r1822318910


##########
providers/src/airflow/providers/standard/operators/python.py:
##########
@@ -732,12 +709,10 @@ def __init__(
                 f"Sys version: {sys.version_info}. Virtual environment 
version: {python_version}"
             )
         if python_version is not None and not isinstance(python_version, str):
-            warnings.warn(
-                "Passing non-string types (e.g. int or float) as 
python_version "
-                "is deprecated. Please use string value instead.",
-                RemovedInAirflow3Warning,
-                stacklevel=2,
+            raise AirflowException(
+                "Passing non-string types (e.g. int or float) as 
python_version not supported"

Review Comment:
   I remember now—there was a discussion about making imports function properly 
when a user tries to import airflow.operators.python, redirecting it to 
airflow.providers.standard.operators.python using something like a meta path, 
when airflow 3.0 released. 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to