actually fix merge 🙈

This commit is contained in:
Maximilian Hils 2016-10-16 21:33:24 -07:00
parent bdaa13d498
commit 666c59cbfb
2 changed files with 15 additions and 16 deletions

View File

@ -23,6 +23,18 @@ FOOTER_EDITING = [
]
class Cell(urwid.WidgetWrap):
def get_data(self):
"""
Raises:
ValueError, if the current content is invalid.
"""
raise NotImplementedError()
def selectable(self):
return True
class Column(object, metaclass=abc.ABCMeta):
subeditor = None
@ -45,24 +57,12 @@ class Column(object, metaclass=abc.ABCMeta):
return key
class Cell(urwid.WidgetWrap):
def get_data(self):
"""
Raises:
ValueError, if the current content is invalid.
"""
raise NotImplementedError()
def selectable(self):
return True
class GridRow(urwid.WidgetWrap):
def __init__(
self,
focused: Optional[int],
editing: bool,
editor: GridEditor,
editor: "GridEditor",
values: Tuple[Iterable[bytes], Container[int]]
):
self.focused = focused
@ -117,7 +117,7 @@ class GridWalker(urwid.ListWalker):
def __init__(
self,
lst: Iterable[list],
editor: GridEditor
editor: "GridEditor"
):
self.lst = [(i, set()) for i in lst]
self.editor = editor

View File

@ -183,8 +183,7 @@ def load(file_handle: io.BinaryIO) -> TSerializable:
return parse(data_type, data)
def parse(data_type: int, data: bytes):
# type: (int, bytes) -> TSerializable
def parse(data_type: int, data: bytes) -> TSerializable:
if data_type == ord(b','):
return data
if data_type == ord(b';'):