From f4e219716f44c901ea5feb9dbc82220d2751a507 Mon Sep 17 00:00:00 2001 From: Benoit Chesneau Date: Wed, 11 Feb 2026 23:48:07 +0100 Subject: [PATCH] fix(dirty): disable pylint too-many-return-statements in TLV --- gunicorn/dirty/tlv.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gunicorn/dirty/tlv.py b/gunicorn/dirty/tlv.py index e0b1e2f4..ec18cd76 100644 --- a/gunicorn/dirty/tlv.py +++ b/gunicorn/dirty/tlv.py @@ -50,7 +50,7 @@ class TLVEncoder: """ @staticmethod - def encode(value) -> bytes: + def encode(value) -> bytes: # pylint: disable=too-many-return-statements """ Encode a Python value to TLV binary format. @@ -125,7 +125,7 @@ class TLVEncoder: ) @staticmethod - def decode(data: bytes, offset: int = 0) -> tuple: + def decode(data: bytes, offset: int = 0) -> tuple: # pylint: disable=too-many-return-statements """ Decode a TLV-encoded value from binary data.