-
-
Notifications
You must be signed in to change notification settings - Fork 53
Expand file tree
/
Copy path__init__.pyi
More file actions
42 lines (32 loc) · 1.2 KB
/
__init__.pyi
File metadata and controls
42 lines (32 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import ast
from typing import Any, List, Optional, Text, Union
from .transforms.remove_annotations_options import RemoveAnnotationsOptions as RemoveAnnotationsOptions
class UnstableMinification(RuntimeError):
def __init__(self, exception: Any, source: Any, minified: Any): ...
def minify(
source: Union[str, bytes],
filename: Optional[str] = ...,
remove_annotations: Union[bool, RemoveAnnotationsOptions] = ...,
remove_pass: bool = ...,
remove_literal_statements: bool = ...,
combine_imports: bool = ...,
hoist_literals: bool = ...,
rename_locals: bool = ...,
preserve_locals: Optional[List[Text]] = ...,
rename_globals: bool = ...,
preserve_globals: Optional[List[Text]] = ...,
remove_object_base: bool = ...,
convert_posargs_to_args: bool = ...,
preserve_shebang: bool = ...,
remove_asserts: bool = ...,
remove_debug: bool = ...,
remove_explicit_return_none: bool = ...,
remove_builtin_exception_brackets: bool = ...,
constant_folding: bool = ...
) -> Text: ...
def unparse(module: ast.Module) -> Text: ...
def awslambda(
source: Union[str, bytes],
filename: Optional[Text] = ...,
entrypoint: Optional[Text] = ...
) -> Text: ...