Skip to content

Commit e932773

Browse files
committed
add __repr__ to VarList
1 parent a3b3700 commit e932773

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cbor/cbor.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,8 @@ def _is_intish(x):
214214

215215

216216
class VarList(list):
217-
pass
217+
def __repr__(self):
218+
return 'VarList(%s)' % list.__repr__(self)
218219

219220

220221
def dumps(ob, sort_keys=False):

0 commit comments

Comments
 (0)