diff --git a/javac_parser/__init__.pyi b/javac_parser/__init__.pyi index ffcdda0..388358a 100644 --- a/javac_parser/__init__.pyi +++ b/javac_parser/__init__.pyi @@ -1 +1 @@ -from .javac_parser import Java +from .javac_parser import Java as Java diff --git a/javac_parser/__version__.py b/javac_parser/__version__.py index 55e5943..2a7df69 100644 --- a/javac_parser/__version__.py +++ b/javac_parser/__version__.py @@ -1,4 +1,4 @@ #!/usr/bin/env python3 # -*- coding: UTF-8 -*- -__version__ = '0.2.4' +__version__ = '1.0.0' diff --git a/javac_parser/javac_parser.pyi b/javac_parser/javac_parser.pyi index 4f6d2d2..c128d8b 100644 --- a/javac_parser/javac_parser.pyi +++ b/javac_parser/javac_parser.pyi @@ -13,4 +13,4 @@ Token = Tuple[str, str, Tuple[int, int], Tuple[int, int], str] class Java: def check_syntax(self, java_source: Union[str, bytes]) -> List[Diagnostic]: ... def get_num_parse_errors(self, java_source: Union[str, bytes]) -> int: ... - def lex(self, java_source: Union[str, bytes]) -> List[Token]: ... + def lex(self, java_source: str) -> List[Token]: ...