From 26d6a25bdf9cb28de1c077f20d0e9a188b91d138 Mon Sep 17 00:00:00 2001 From: Michael Klich Date: Tue, 10 May 2022 09:12:42 +0200 Subject: [PATCH] Update python.md --- website/docs/sdks/python.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/website/docs/sdks/python.md b/website/docs/sdks/python.md index 9dc36b5ab4ef..e2ed8c5aa8f0 100644 --- a/website/docs/sdks/python.md +++ b/website/docs/sdks/python.md @@ -29,7 +29,10 @@ client.is_enabled("My Toggle") Specifying a default value: ```Python -client.is_enabled("My Toggle", default_value=True) +def custom_fallback(feature_name: str, context: dict) -> bool: + return True + +client.is_enabled("My Toggle", fallback_function=custom_fallback) ``` Supplying application context: