aboutsummaryrefslogtreecommitdiff
path: root/.venv/lib/python3.12/site-packages/lark-stubs/indenter.pyi
diff options
context:
space:
mode:
Diffstat (limited to '.venv/lib/python3.12/site-packages/lark-stubs/indenter.pyi')
-rw-r--r--.venv/lib/python3.12/site-packages/lark-stubs/indenter.pyi47
1 files changed, 47 insertions, 0 deletions
diff --git a/.venv/lib/python3.12/site-packages/lark-stubs/indenter.pyi b/.venv/lib/python3.12/site-packages/lark-stubs/indenter.pyi
new file mode 100644
index 00000000..3a7aa973
--- /dev/null
+++ b/.venv/lib/python3.12/site-packages/lark-stubs/indenter.pyi
@@ -0,0 +1,47 @@
+# -*- coding: utf-8 -*-
+
+from typing import Tuple, List, Iterator, Optional
+from abc import ABC, abstractmethod
+from .lexer import Token
+from .lark import PostLex
+
+
+class Indenter(PostLex, ABC):
+ paren_level: Optional[int]
+ indent_level: Optional[List[int]]
+
+ def __init__(self) -> None:
+ ...
+
+ def handle_NL(self, token: Token) -> Iterator[Token]:
+ ...
+
+ @property
+ @abstractmethod
+ def NL_type(self) -> str:
+ ...
+
+ @property
+ @abstractmethod
+ def OPEN_PAREN_types(self) -> List[str]:
+ ...
+
+ @property
+ @abstractmethod
+ def CLOSE_PAREN_types(self) -> List[str]:
+ ...
+
+ @property
+ @abstractmethod
+ def INDENT_type(self) -> str:
+ ...
+
+ @property
+ @abstractmethod
+ def DEDENT_type(self) -> str:
+ ...
+
+ @property
+ @abstractmethod
+ def tab_len(self) -> int:
+ ...