From 10271fb8509fa76843fe29fa9c4cd9e16095049d Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Thu, 17 Oct 2024 17:39:24 -0700 Subject: [PATCH] ruff: Fix SIM910 Use `.get(key)` instead of `.get(key, None)`. Signed-off-by: Anders Kaseorg --- corporate/tests/test_stripe.py | 2 +- zerver/lib/test_classes.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/corporate/tests/test_stripe.py b/corporate/tests/test_stripe.py index 09c28e2035..f1a5165230 100644 --- a/corporate/tests/test_stripe.py +++ b/corporate/tests/test_stripe.py @@ -650,7 +650,7 @@ class StripeTestCase(ZulipTestCase): license_management="automatic", ) - remote_server_plan_start_date = kwargs.get("remote_server_plan_start_date", None) + remote_server_plan_start_date = kwargs.get("remote_server_plan_start_date") if remote_server_plan_start_date: params.update( remote_server_plan_start_date=remote_server_plan_start_date, diff --git a/zerver/lib/test_classes.py b/zerver/lib/test_classes.py index a50788babe..b5eb1deec4 100644 --- a/zerver/lib/test_classes.py +++ b/zerver/lib/test_classes.py @@ -1894,7 +1894,7 @@ Output: user_notifications_data=user_notifications_data, message_id=message_id, acting_user_id=acting_user_id, - mentioned_user_group_id=kwargs.get("mentioned_user_group_id", None), + mentioned_user_group_id=kwargs.get("mentioned_user_group_id"), idle=kwargs.get("idle", True), already_notified=kwargs.get( "already_notified", {"email_notified": False, "push_notified": False}