Update stubs

This commit is contained in:
Trinh Anh Ngoc
2022-10-16 23:42:26 +07:00
parent d23f832fbb
commit f5ffdc1d39

View File

@@ -16,7 +16,7 @@ _SAFE_OPCODES: set[int]
def assert_no_dunder_name(code_obj: CodeType, expr: str) -> None: ...
def assert_valid_codeobj(allowed_codes: set[int], code_obj: CodeType, expr: str) -> None: ...
def test_expr(expr: str, allowed_codes: set[int], mode: str = ...): ...
def test_expr(expr: str, allowed_codes: set[int], mode: str = ..., filename: str | None = ...): ...
def const_eval(expr: str): ...
def expr_eval(expr: str): ...
def _import(name: str, globals: dict | None = ..., locals: dict | None = ..., fromlist: list | None = ..., level: int = ...): ...
@@ -24,7 +24,7 @@ def _import(name: str, globals: dict | None = ..., locals: dict | None = ..., fr
_BUILTINS: dict[str, Any]
def safe_eval(expr: str, globals_dict: dict | None = ..., locals_dict: dict | None = ..., mode: str = ...,
nocopy: bool = ..., locals_builtins: bool = ...): ...
nocopy: bool = ..., locals_builtins: bool = ..., filename: str | None = ...): ...
def test_python_expr(expr: str, mode: str = ...) -> str | Literal[False]: ...
def check_values(d: dict): ...