mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-16 00:37:10 +08:00
Add exec to Python 2 builtins (#328)
This commit is contained in:
committed by
Guido van Rossum
parent
4fee66c90b
commit
c5dcfe96d2
@@ -868,6 +868,9 @@ class BytesWarning(Warning): ...
|
||||
class ResourceWarning(Warning): ...
|
||||
|
||||
def eval(s: str, globals: Dict[str, Any] = ..., locals: Dict[str, Any] = ...) -> Any: ...
|
||||
def exec(object: str,
|
||||
globals: Dict[str, Any] = None,
|
||||
locals: Dict[str, Any] = None) -> Any: ... # TODO code object as source
|
||||
|
||||
def cmp(x: Any, y: Any) -> int: ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user