change empty bodies from "pass" to "..."

CONTRIBUTING.md says to prefer ... Not the most impactful change but fixing
these will allow us to lint for it in the future and get a consistent style.
This commit is contained in:
Jelle Zijlstra authored and Łukasz Langa committed 2017-03-16 09:13:08 -07:00
1 parent 17be26165d
commit 349ff59f33
16 files changed
+53 -53

No files matched your search

+2 -2
View File
@@ -24,8 +24,8 @@ _T3 = TypeVar('_T3')
_T4 = TypeVar('_T4')
_TT = TypeVar('_TT', bound='type')
class staticmethod: pass # Special, only valid as a decorator.
class classmethod: pass # Special, only valid as a decorator.
class staticmethod: ... # Special, only valid as a decorator.
class classmethod: ... # Special, only valid as a decorator.
class object:
__doc__ = ... # type: Optional[str]
+3 -3
View File
@@ -9,6 +9,6 @@ class StreamWriter(codecs.StreamWriter):
class StreamReader(codecs.StreamReader):
pass
def getregentry() -> codecs.CodecInfo: pass
def encode(input: str, errors: str = ...) -> bytes: pass
def decode(input: bytes, errors: str = ...) -> str: pass
def getregentry() -> codecs.CodecInfo: ...
def encode(input: str, errors: str = ...) -> bytes: ...
def decode(input: bytes, errors: str = ...) -> str: ...
+2 -2
View File
@@ -11,5 +11,5 @@ class struct_spwd(object):
sp_expire = ... # type: int
sp_flag = ... # type: int
def getspall() -> List[struct_spwd]: pass
def getspnam() -> struct_spwd: pass
def getspall() -> List[struct_spwd]: ...
def getspnam() -> struct_spwd: ...
+1 -1
View File
@@ -127,7 +127,7 @@ class FrameType:
f_restricted = ... # type: bool
f_trace = ... # type: Callable[[], None]
def clear(self) -> None: pass
def clear(self) -> None: ...
SliceType = slice
class EllipsisType: ...