diff --git a/stdlib/2.7/__builtin__.pyi b/stdlib/2.7/__builtin__.pyi index 2c877c285..9dc5ca948 100644 --- a/stdlib/2.7/__builtin__.pyi +++ b/stdlib/2.7/__builtin__.pyi @@ -1,5 +1,8 @@ # Stubs for builtins (Python 2.7) +# True and False are deliberately omitted because they are keywords in +# Python 3, and stub files conform to Python 3 syntax. + from typing import ( TypeVar, Iterator, Iterable, overload, Sequence, Mapping, Tuple, List, Any, Dict, Callable, Generic, Set, @@ -629,10 +632,6 @@ class module: __file__ = ... # type: str __dict__ = ... # type: Dict[unicode, Any] -True = ... # type: bool -False = ... # type: bool -__debug__ = False - long = int bytes = str diff --git a/stdlib/3/builtins.pyi b/stdlib/3/builtins.pyi index 7a6a4994b..1e4eea8ef 100644 --- a/stdlib/3/builtins.pyi +++ b/stdlib/3/builtins.pyi @@ -605,10 +605,6 @@ class module: __file__ = ... # type: str __dict__ = ... # type: Dict[str, Any] -True = ... # type: bool -False = ... # type: bool -__debug__ = False - NotImplemented = ... # type: Any def abs(n: SupportsAbs[_T]) -> _T: ...