Document update.

This commit is contained in:
INADA Naoki 2013-10-21 01:47:54 +09:00
parent 1d0096b998
commit f31a4403a1
4 changed files with 7 additions and 1 deletions

View file

@ -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")