From bc812077c41896c93205fe6e9e3d18485d83a2e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mochol=C3=AD?= Date: Wed, 16 Mar 2022 10:28:28 +0100 Subject: [PATCH] Fix CLI snippet in the docs (#12275) --- docs/source/common/lightning_cli.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/source/common/lightning_cli.rst b/docs/source/common/lightning_cli.rst index 7267606b05..a75c77058e 100644 --- a/docs/source/common/lightning_cli.rst +++ b/docs/source/common/lightning_cli.rst @@ -891,6 +891,7 @@ If you need to customize the learning rate scheduler configuration, you can do s .. testcode:: class MyLightningCLI(LightningCLI): + @staticmethod def configure_optimizers(lightning_module, optimizer, lr_scheduler=None): return ...