mirror of
https://github.com/frappe/gunicorn.git
synced 2026-07-01 18:21:30 +08:00
fix(dirty): disable pylint too-many-return-statements in TLV
This commit is contained in:
parent
6d691b30e1
commit
f4e219716f
@ -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.
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user