uranusjr commented on code in PR #33355:
URL: https://github.com/apache/airflow/pull/33355#discussion_r1322379272
##########
airflow/operators/python.py:
##########
@@ -543,6 +549,7 @@ def __init__(
expect_airflow: bool = True,
skip_on_exit_code: int | Container[int] | None = None,
index_urls: None | Collection[str] | str = None,
+ venv_cache_path: None | str = None,
Review Comment:
```suggestion
venv_cache_path: None | os.PathLike[str] = None,
```
No reason why the user can’t just pass in a Path. (This keeps compatibility
with str as well.)
##########
airflow/operators/python.py:
##########
@@ -543,6 +549,7 @@ def __init__(
expect_airflow: bool = True,
skip_on_exit_code: int | Container[int] | None = None,
index_urls: None | Collection[str] | str = None,
+ venv_cache_path: None | str = None,
Review Comment:
```suggestion
venv_cache_path: None | os.PathLike[str] = None,
```
No reason why the user can’t just pass in a Path. (This keeps compatibility
with str as well.)
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]