This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 7ff380eea7a Ignore a semi-random error generated by Mypy (#46123)
7ff380eea7a is described below
commit 7ff380eea7a8793b3df926422c48a9c412b1be3d
Author: Jarek Potiuk <[email protected]>
AuthorDate: Mon Jan 27 12:01:09 2025 +0100
Ignore a semi-random error generated by Mypy (#46123)
I guess Mypy is confused sometimes and thinks that File is the File
from pathlib or smth.
---
.../papermill/src/airflow/providers/papermill/operators/papermill.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/providers/papermill/src/airflow/providers/papermill/operators/papermill.py
b/providers/papermill/src/airflow/providers/papermill/operators/papermill.py
index 6bb03310ad7..fe95c408930 100644
--- a/providers/papermill/src/airflow/providers/papermill/operators/papermill.py
+++ b/providers/papermill/src/airflow/providers/papermill/operators/papermill.py
@@ -98,9 +98,9 @@ class PapermillOperator(BaseOperator):
def execute(self, context: Context):
if not isinstance(self.input_nb, NoteBook):
- self.input_nb = NoteBook(url=self.input_nb,
parameters=self.parameters)
+ self.input_nb = NoteBook(url=self.input_nb,
parameters=self.parameters) # type: ignore[call-arg]
if not isinstance(self.output_nb, NoteBook):
- self.output_nb = NoteBook(url=self.output_nb)
+ self.output_nb = NoteBook(url=self.output_nb) # type:
ignore[call-arg]
self.inlets.append(self.input_nb)
self.outlets.append(self.output_nb)
remote_kernel_kwargs = {}