Remove unused __slots__ declaration from TooLongMsgError class

This commit is contained in:
Jahongir Qurbonov 2025-06-01 20:28:41 +05:00
parent bc43ae4718
commit bf4560a8c1
No known key found for this signature in database
GPG Key ID: 256976CED13D5F2D

View File

@ -234,8 +234,6 @@ class NegativeLengthError(DeserializationError):
class TooLongMsgError(DeserializationError):
__slots__ = ("expected", "got")
def __init__(self, *args: object, got: int, max_length: int) -> None:
super().__init__(
f"Bad server message length (got {got}, when at most it should be {max_length})",