From b09c0776bcb760c1c5b7545686db422fea9b834a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20W=C3=A4lchli?= Date: Fri, 10 Mar 2023 16:59:07 +0100 Subject: [PATCH] Force keyword-only usage to init Fabric (#17023) --- src/lightning/fabric/fabric.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lightning/fabric/fabric.py b/src/lightning/fabric/fabric.py index 18dc5b3314..bfe3977204 100644 --- a/src/lightning/fabric/fabric.py +++ b/src/lightning/fabric/fabric.py @@ -78,6 +78,7 @@ class Fabric: def __init__( self, + *, accelerator: Union[str, Accelerator] = "auto", strategy: Union[str, Strategy] = "auto", devices: Union[List[int], str, int] = "auto",