Skip to content

Commit c59010f

Browse files
committed
new column call sig
1 parent 9f838ac commit c59010f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

plotly/grid_objs/grid_objs.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
from plotly import utils
1111

1212

13-
class Column():
14-
def __init__(self, name, data):
13+
class Column(object):
14+
def __init__(self, data, name):
1515
# TODO: data type checking
1616
self.data = data
1717
# TODO: name type checking
@@ -30,7 +30,8 @@ def __str__(self):
3030
return string.format(name=self.name, data=data_string, id=self.id)
3131

3232
def __repr__(self):
33-
return 'Coumn("{name}", {data})'.format(name=self.name, data=self.data)
33+
return ('Column("{}", {})'
34+
.format(data=self.data, name=self.name))
3435

3536

3637
class Grid(MutableSequence):

0 commit comments

Comments
 (0)