Merge pull request #85 from ddfisher/master

Remove invalid Python 3 syntax
This commit is contained in:
Matthias Kramm
2016-02-23 20:14:15 -06:00
2 changed files with 3 additions and 8 deletions

View File

@@ -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

View File

@@ -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: ...