chore: reduce max complexity lint (#3230)

This commit is contained in:
dni ⚡
2025-07-15 11:14:03 +02:00
parent 5765ea0276
commit ba0f7a01ef
10 changed files with 10 additions and 11 deletions
+1 -1
View File
@@ -513,7 +513,7 @@ class NWCConnection:
if subscription: # Check if the subscription exists first
subscription["future"].set_exception(Exception(info))
async def _on_event_message(self, msg: list[Union[str, dict]]):
async def _on_event_message(self, msg: list[Union[str, dict]]): # noqa: C901
"""
Handles EVENT messages from the relay.
"""
+1 -1
View File
@@ -487,7 +487,7 @@ class StrikeWallet(Wallet):
return None
async def _get_payment_status_by_checking_id(
async def _get_payment_status_by_checking_id( # noqa: C901
self, checking_id: str
) -> PaymentStatus:
r_payment = await self._get(f"/payments/{checking_id}")