Skip to content

Commit 3ef12f6

Browse files
author
mum
committed
Fix type-checking error for console.render call
Add type ignore comment for console.render(traceback) call. The Traceback object is correctly renderable by rich's console, but the type checker doesn't recognize this properly.
1 parent a95fe54 commit 3ef12f6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/pytask_parallel/wrappers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ def _render_traceback_to_string(
203203
) -> tuple[type[BaseException], BaseException, str]:
204204
"""Process the exception and convert the traceback to a string."""
205205
traceback = Traceback(exc_info, show_locals=show_locals)
206-
segments = console.render(traceback, options=console_options)
206+
segments = console.render(traceback, options=console_options) # ty: ignore[invalid-argument-type]
207207
text = "".join(segment.text for segment in segments)
208208
return (*exc_info[:2], text) # ty: ignore[invalid-return-type]
209209

0 commit comments

Comments
 (0)