소스 검색

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))



불러오는 중...
취소
저장