mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 13:34:58 +08:00
Merge pull request #85 from ddfisher/master
Remove invalid Python 3 syntax
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user