summaryrefslogtreecommitdiff
path: root/lulua/writer.py
diff options
context:
space:
mode:
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):