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
2017-03-16 07:44:45 -07:00
committed by Łukasz Langa
parent 17be26165d
commit 349ff59f33
16 changed files with 53 additions and 53 deletions

View File

@@ -63,11 +63,11 @@ class SupportsFloat(metaclass=ABCMeta):
class SupportsComplex(metaclass=ABCMeta):
@abstractmethod
def __complex__(self) -> complex: pass
def __complex__(self) -> complex: ...
class SupportsBytes(metaclass=ABCMeta):
@abstractmethod
def __bytes__(self) -> bytes: pass
def __bytes__(self) -> bytes: ...
class SupportsAbs(Generic[_T]):
@abstractmethod
@@ -180,10 +180,10 @@ class Container(Generic[_T_co]):
if sys.version_info >= (3, 6):
class Collection(Sized, Iterable[_T_co], Container[_T_co], Generic[_T_co]): pass
class Collection(Sized, Iterable[_T_co], Container[_T_co], Generic[_T_co]): ...
_Collection = Collection
else:
class _Collection(Sized, Iterable[_T_co], Container[_T_co], Generic[_T_co]): pass
class _Collection(Sized, Iterable[_T_co], Container[_T_co], Generic[_T_co]): ...
class Sequence(_Collection[_T_co], Reversible[_T_co], Generic[_T_co]):
@overload