From d8d8f1e03ef6daac803e97fa067c132b56f4f607 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20Schm=C3=B6lder?= Date: Fri, 9 Jan 2026 14:51:01 +0100 Subject: [PATCH] Pass all args/kwargs to super().__init__ --- cadetrdm/batch_running/study.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/cadetrdm/batch_running/study.py b/cadetrdm/batch_running/study.py index 4171b78..64abfbb 100644 --- a/cadetrdm/batch_running/study.py +++ b/cadetrdm/batch_running/study.py @@ -1,11 +1,17 @@ +from functools import wraps import warnings from cadetrdm import ProjectRepo class Study(ProjectRepo): - def __init__(self, path, url=None, branch=None, name=None, suppress_lfs_warning=False, *args, **kwargs): - super().__init__(path=path, url=url, suppress_lfs_warning=suppress_lfs_warning, branch=branch, *args, **kwargs) + @wraps(ProjectRepo.__init__) + def __init__( + self, + *args, + **kwargs, + ) -> None: + super().__init__(*args, **kwargs) warnings.warn( "cadetrdm.Study() will be deprecated soon. Please use ProjectRepo()", FutureWarning