Skip to content

Commit 46025bd

Browse files
author
mum
committed
Fix remaining type-checking errors
- Add type ignore for Path() call with potentially None __file__ - Add type ignore for functools.wraps with CoiledFunction
1 parent 3ef12f6 commit 46025bd

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def linkcode_resolve(domain: str, info: dict[str, str]) -> str | None: # noqa:
144144

145145
linespec = f"#L{lineno}-L{lineno + len(source) - 1}" if lineno else ""
146146

147-
fn = os.path.relpath(fn, start=Path(pytask_parallel.__file__).parent)
147+
fn = os.path.relpath(fn, start=Path(pytask_parallel.__file__).parent) # ty: ignore[invalid-argument-type]
148148

149149
if "+" in pytask_parallel.__version__:
150150
return f"https://github.com/pytask-dev/pytask-parallel/blob/main/src/pytask_parallel/{fn}{linespec}"

src/pytask_parallel/wrappers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def wrap_task_in_process( # noqa: PLR0913
168168

169169

170170
def rewrap_task_with_coiled_function(task: PTask) -> CoiledFunction:
171-
return functools.wraps(wrap_task_in_process)(
171+
return functools.wraps(wrap_task_in_process)( # ty: ignore[invalid-return-type,invalid-argument-type]
172172
CoiledFunction(wrap_task_in_process, **task.attributes["coiled_kwargs"])
173173
)
174174

0 commit comments

Comments
 (0)