Skip to content

Commit f4e2197

Browse files
committed
fix(dirty): disable pylint too-many-return-statements in TLV
1 parent 6d691b3 commit f4e2197

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gunicorn/dirty/tlv.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class TLVEncoder:
5050
"""
5151

5252
@staticmethod
53-
def encode(value) -> bytes:
53+
def encode(value) -> bytes: # pylint: disable=too-many-return-statements
5454
"""
5555
Encode a Python value to TLV binary format.
5656
@@ -125,7 +125,7 @@ def encode(value) -> bytes:
125125
)
126126

127127
@staticmethod
128-
def decode(data: bytes, offset: int = 0) -> tuple:
128+
def decode(data: bytes, offset: int = 0) -> tuple: # pylint: disable=too-many-return-statements
129129
"""
130130
Decode a TLV-encoded value from binary data.
131131

0 commit comments

Comments
 (0)