Przeglądaj źródła

Replace '...' with 'NotImplemented'

gm/2021-09-23T00Z/github.com--lark-parser-lark/1.0b
Erez Sh 3 lat temu
rodzic
commit
0fddb7fef6
2 zmienionych plików z 7 dodań i 7 usunięć
  1. +6
    -6
      lark/indenter.py
  2. +1
    -1
      lark/lexer.py

+ 6
- 6
lark/indenter.py Wyświetl plik

@@ -74,31 +74,31 @@ class Indenter(PostLex, ABC):
@property
@abstractmethod
def NL_type(self) -> str:
...
return NotImplemented

@property
@abstractmethod
def OPEN_PAREN_types(self) -> List[str]:
...
return NotImplemented

@property
@abstractmethod
def CLOSE_PAREN_types(self) -> List[str]:
...
return NotImplemented

@property
@abstractmethod
def INDENT_type(self) -> str:
...
return NotImplemented

@property
@abstractmethod
def DEDENT_type(self) -> str:
...
return NotImplemented

@property
@abstractmethod
def tab_len(self) -> int:
...
return NotImplemented

###}

+ 1
- 1
lark/lexer.py Wyświetl plik

@@ -359,7 +359,7 @@ class Lexer(ABC):
"""
@abstractmethod
def lex(self, lexer_state: LexerState, parser_state: Any) -> Iterator[Token]:
...
return NotImplemented

def make_lexer_state(self, text):
line_ctr = LineCounter(b'\n' if isinstance(text, bytes) else '\n')


Ładowanie…
Anuluj
Zapisz