Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions stdlib/2/__builtin__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ from typing import (
Sequence, Mapping, Tuple, List, Any, Dict, Callable, Generic, Set,
AbstractSet, FrozenSet, Sized, Reversible, SupportsInt, SupportsFloat, SupportsAbs,
SupportsRound, IO, BinaryIO, Union, AnyStr, MutableSequence, MutableMapping,
MutableSet, ItemsView, KeysView, ValuesView, Optional, Container, Type
MutableSet, ItemsView, KeysView, ValuesView, Optional, Container, Type, Text
)
from abc import abstractmethod, ABCMeta
from ast import AST
from mypy_extensions import NoReturn

_T = TypeVar('_T')
Expand Down Expand Up @@ -694,7 +695,7 @@ def any(i: Iterable) -> bool: ...
def bin(number: int) -> str: ...
def callable(o: object) -> bool: ...
def chr(code: int) -> str: ...
def compile(source: Any, filename: unicode, mode: str, flags: int = 0,
def compile(source: Union[Text, AST], filename: unicode, mode: str, flags: int = 0,
dont_inherit: int = 0) -> Any: ...
def delattr(o: Any, name: unicode) -> None: ...
def dir(o: object = ...) -> List[str]: ...
Expand Down
3 changes: 2 additions & 1 deletion stdlib/3/builtins.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ from typing import (
ByteString, Optional, AnyStr, Type,
)
from abc import abstractmethod, ABCMeta
from ast import AST
from types import TracebackType
import sys
from mypy_extensions import NoReturn
Expand Down Expand Up @@ -765,7 +766,7 @@ def ascii(o: object) -> str: ...
def bin(number: int) -> str: ...
def callable(o: object) -> bool: ...
def chr(code: int) -> str: ...
def compile(source: Any, filename: Union[str, bytes], mode: str, flags: int = 0,
def compile(source: Union[str, bytes, AST], filename: Union[str, bytes], mode: str, flags: int = 0,
dont_inherit: int = 0) -> Any: ...
def copyright() -> None: ...
def credits() -> None: ...
Expand Down