Skip to content

Commit

Permalink
Ignore a semi-random error generated by Mypy (#46123)
Browse files Browse the repository at this point in the history
I guess Mypy is confused sometimes and thinks that File is the File
from pathlib or smth.
  • Loading branch information
potiuk authored Jan 27, 2025
1 parent 33cb886 commit 7ff380e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ def __init__(

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 = {}
Expand Down

0 comments on commit 7ff380e

Please sign in to comment.