mirror of
https://github.com/msgpack/msgpack-python.git
synced 2026-02-07 10:19:51 +00:00
fix lint
This commit is contained in:
parent
1c33b7efc7
commit
b9d495db40
3 changed files with 10 additions and 8 deletions
|
|
@ -6,6 +6,7 @@ from collections import namedtuple
|
|||
|
||||
class ExtType(namedtuple("ExtType", "code data")):
|
||||
"""ExtType represents ext type in msgpack."""
|
||||
|
||||
code: int
|
||||
data: bytes
|
||||
|
||||
|
|
@ -16,7 +17,7 @@ class ExtType(namedtuple("ExtType", "code data")):
|
|||
raise TypeError("data must be bytes")
|
||||
if not 0 <= code <= 127:
|
||||
raise ValueError("code must be 0~127")
|
||||
return super().__new__(cls, code, data) # type: ignore
|
||||
return super().__new__(cls, code, data) # type: ignore
|
||||
|
||||
|
||||
class Timestamp:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue