瀏覽代碼

Fixup: change typehint to Sequence

gm/2021-09-23T00Z/github.com--lark-parser-lark/1.0b
Erez Sh 3 年之前
父節點
當前提交
d0f25985af
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. +3
    -1
      lark/exceptions.py

+ 3
- 1
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))



Loading…
取消
儲存