turbaszek commented on a change in pull request #9394:
URL: https://github.com/apache/airflow/pull/9394#discussion_r447453937
##########
File path: airflow/operators/python.py
##########
@@ -354,14 +354,18 @@ class PythonVirtualenvOperator(PythonOperator):
Note that if your virtualenv runs in a different Python major version than
Airflow,
you cannot use return values, op_args, or op_kwargs. You can use
string_args though.
+ .. seealso::
+ For more information on how to use this operator, take a look at the
guide:
+ :ref:`howto/operator:PythonVirtualenvOperator`
+
:param python_callable: A python function with no references to outside
variables,
defined with def, which will be run in a virtualenv
:type python_callable: function
:param requirements: A list of requirements as specified in a pip install
command
:type requirements: list[str]
:param python_version: The Python version to run the virtualenv with. Note
that
both 2 and 2.7 are acceptable forms.
- :type python_version: str
+ :type python_version: str or int or float
Review comment:
```suggestion
:type python_version: Union[str, int, float]
```
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]