mirror of
https://github.com/msgpack/msgpack-python.git
synced 2026-02-10 11:50:20 +00:00
Document update.
This commit is contained in:
parent
1d0096b998
commit
f31a4403a1
4 changed files with 7 additions and 1 deletions
|
|
@ -6,6 +6,7 @@ from collections import namedtuple
|
|||
|
||||
|
||||
class ExtType(namedtuple('ExtType', 'code data')):
|
||||
"""ExtType represents ext type in msgpack."""
|
||||
def __new__(cls, code, data):
|
||||
if not isinstance(code, int):
|
||||
raise TypeError("code must be int")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue