Towards a more type-clean mypy check.
[pyutils.git] / src / pyutils / unscrambler.py
index cada2a03c5c5e967be02f1c4703b9d0108f5797f..847198d9212d78b89814c9431af6a1ce62187e0d 100644 (file)
@@ -130,6 +130,7 @@ class Unscrambler(object):
         if indexfile is None:
             if 'unscrambler_default_indexfile' in config.config:
                 indexfile = config.config['unscrambler_default_indexfile']
+                assert type(indexfile) == str
             else:
                 indexfile = "/usr/share/dict/sparse_index"
         else: