summaryrefslogtreecommitdiff
path: root/lulua/writer.py
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2019-11-17 10:09:37 +0100
committerLars-Dominik Braun <lars@6xq.net>2019-11-17 10:09:37 +0100
commit1e6ad5d702181bce6aeb3d0704c36f124417227d (patch)
tree62946bc5090b10d24a4cbbf7fe09dadc3b40c6c5 /lulua/writer.py
parent41f342e12b975e785de9d755d38eb92cf38f5ec5 (diff)
downloadlulua-1e6ad5d702181bce6aeb3d0704c36f124417227d.tar.gz
lulua-1e6ad5d702181bce6aeb3d0704c36f124417227d.tar.bz2
lulua-1e6ad5d702181bce6aeb3d0704c36f124417227d.zip
Add more tests
Diffstat (limited to 'lulua/writer.py')
-rw-r--r--lulua/writer.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/lulua/writer.py b/lulua/writer.py
index bbe1efb..94ad1b4 100644
--- a/lulua/writer.py
+++ b/lulua/writer.py
@@ -20,6 +20,7 @@
import json
from operator import itemgetter
+from typing import Text
from .layout import *
@@ -109,7 +110,8 @@ defaultFingermap = {
class SkipEvent:
__slots__ = ('char', )
- def __init__ (self, char):
+ def __init__ (self, char: Text):
+ assert len (char) == 1
self.char = char
def __eq__ (self, other):