diff --git a/lark/exceptions.py b/lark/exceptions.py index 6f7d32d..76db0fc 100644 --- a/lark/exceptions.py +++ b/lark/exceptions.py @@ -1,3 +1,5 @@ +from collections.abc import Sequence + from .utils import logger, NO_VALUE @@ -12,7 +14,7 @@ class ConfigurationError(LarkError, ValueError): pass -def assert_config(value, options: list, msg='Got %r, expected one of %s'): +def assert_config(value, options: Sequence, msg='Got %r, expected one of %s'): if value not in options: raise ConfigurationError(msg % (value, options))