Update stubs

This commit is contained in:
Trinh Anh Ngoc
2022-10-08 17:45:45 +07:00
parent d3d9967792
commit 533927b9eb

View File

@@ -1,40 +1,41 @@
from opcode import HAVE_ARGUMENT as HAVE_ARGUMENT from opcode import HAVE_ARGUMENT as HAVE_ARGUMENT
from typing import Any from types import CodeType
from typing import Any, Iterable, Iterator, Literal
unsafe_eval = eval unsafe_eval = eval
__all__: Any _ALLOWED_MODULES: list[str]
_ALLOWED_MODULES: Any _UNSAFE_ATTRIBUTES: list[str]
_UNSAFE_ATTRIBUTES: Any
def to_opcodes(opnames, _opmap=...) -> None: ... def to_opcodes(opnames: Iterable[str], _opmap: dict[str, int] =...) -> Iterator[int]: ...
_BLACKLIST: Any _BLACKLIST: set[int]
_CONST_OPCODES: Any _CONST_OPCODES: set[int]
_operations: Any _operations: list[str]
_EXPR_OPCODES: Any _EXPR_OPCODES: set[int]
_SAFE_OPCODES: Any _SAFE_OPCODES: set[int]
_logger: Any
def assert_no_dunder_name(code_obj, expr) -> None: ... def assert_no_dunder_name(code_obj: CodeType, expr: str) -> None: ...
def assert_valid_codeobj(allowed_codes, code_obj, expr) -> None: ... def assert_valid_codeobj(allowed_codes: set[int], code_obj: CodeType, expr: str) -> None: ...
def test_expr(expr, allowed_codes, mode: str = ...): ... def test_expr(expr: str, allowed_codes: set[int], mode: str = ...): ...
def const_eval(expr): ... def const_eval(expr: str): ...
def expr_eval(expr): ... def expr_eval(expr: str): ...
def _import(name, globals: Any | None = ..., locals: Any | None = ..., fromlist: Any | None = ..., level: int = ...): ... def _import(name: str, globals: dict | None = ..., locals: dict | None = ..., fromlist: list | None = ..., level: int = ...): ...
_BUILTINS: Any _BUILTINS: dict[str, Any]
def safe_eval(expr, globals_dict: Any | None = ..., locals_dict: Any | None = ..., mode: str = ..., nocopy: bool = ..., locals_builtins: bool = ...): ... def safe_eval(expr: str, globals_dict: dict | None = ..., locals_dict: dict | None = ..., mode: str = ...,
def test_python_expr(expr, mode: str = ...): ... nocopy: bool = ..., locals_builtins: bool = ...): ...
def check_values(d): ... def test_python_expr(expr: str, mode: str = ...) -> str | Literal[False]: ...
def check_values(d: dict): ...
class wrap_module: class wrap_module:
_repr: Any _repr: str
def __init__(self, module, attributes) -> None: ... def __init__(self, module, attributes) -> None: ...
def __repr__(self): ... def __repr__(self) -> str: ...
def __getattr__(self, item): ...
mods: Any mods: list[str]
datetime: Any datetime: wrap_module
json: Any json: wrap_module
time: Any time: wrap_module
pytz: Any pytz: wrap_module