Force keyword-only usage to init Fabric (#17023)

This commit is contained in:
Adrian Wälchli 2023-03-10 16:59:07 +01:00 committed by GitHub
parent dd02397720
commit b09c0776bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -78,6 +78,7 @@ class Fabric:
def __init__( def __init__(
self, self,
*,
accelerator: Union[str, Accelerator] = "auto", accelerator: Union[str, Accelerator] = "auto",
strategy: Union[str, Strategy] = "auto", strategy: Union[str, Strategy] = "auto",
devices: Union[List[int], str, int] = "auto", devices: Union[List[int], str, int] = "auto",