From 395af26fa8d2bac0fdd6d69415367c19bb91877c Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Sat, 25 Jul 2020 16:22:33 +0200 Subject: [PATCH] Removed parso/__init__.pyi It is intentional that the parse function is not typed. It's just a helper function. For a typed version of it, please have a look at Grammar.parse. --- parso/__init__.pyi | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 parso/__init__.pyi diff --git a/parso/__init__.pyi b/parso/__init__.pyi deleted file mode 100644 index 5f72f07..0000000 --- a/parso/__init__.pyi +++ /dev/null @@ -1,19 +0,0 @@ -from typing import Any, Optional, Union - -from parso.grammar import Grammar as Grammar, load_grammar as load_grammar -from parso.parser import ParserSyntaxError as ParserSyntaxError -from parso.utils import python_bytes_to_unicode as python_bytes_to_unicode, split_lines as split_lines - -__version__: str = ... - -def parse( - code: Optional[Union[str, bytes]], - *, - version: Optional[str] = None, - error_recovery: bool = True, - path: Optional[str] = None, - start_symbol: Optional[str] = None, - cache: bool = False, - diff_cache: bool = False, - cache_path: Optional[str] = None, -) -> Any: ...