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

@@ -48,4 +48,4 @@ class VerifiedHTTPSConnection(HTTPSConnection):
UnverifiedHTTPSConnection = ... # type: Any
class ConnectionError(Exception): pass
class ConnectionError(Exception): ...

View File

@@ -1 +1 @@
class CertificateError(ValueError): pass
class CertificateError(ValueError): ...

View File

@@ -23,7 +23,7 @@ class ElementChildIterator(Iterator['_Element']):
class _Element(Iterable['_Element']):
def addprevious(self, element: '_Element') -> None:
pass
...
attrib = ... # type: MutableMapping[str, str]
text = ... # type: AnyStr
@@ -32,7 +32,7 @@ class _Element(Iterable['_Element']):
def __iter__(self) -> ElementChildIterator: ...
class ElementBase(_Element):
pass
...
class _ElementTree:
def write(self,
@@ -47,29 +47,29 @@ class _ElementTree:
exclusive: bool = ...,
with_comments: bool = ...,
inclusive_ns_prefixes: ListAnyStr = ...) -> None:
pass
...
class _XSLTResultTree(SupportsBytes):
pass
...
class _XSLTQuotedStringParam:
pass
...
class XMLParser:
pass
...
class XMLSchema:
def __init__(self,
etree: Union[_Element, _ElementTree] = ...,
file: Union[AnyStr, typing.IO] = ...) -> None:
pass
...
def assertValid(self,
etree: Union[_Element, _ElementTree]) -> None:
pass
...
class XSLTAccessControl:
pass
...
class XSLT:
def __init__(self,
@@ -77,42 +77,42 @@ class XSLT:
extensions: Dict_Tuple2AnyStr_Any = ...,
regexp: bool = ...,
access_control: XSLTAccessControl = ...) -> None:
pass
...
def __call__(self,
_input: Union[_Element, _ElementTree],
profile_run: bool = ...,
**kwargs: Union[AnyStr, _XSLTQuotedStringParam]) -> _XSLTResultTree:
pass
...
@staticmethod
def strparam(s: AnyStr) -> _XSLTQuotedStringParam:
pass
...
def Element(_tag: AnyStr,
attrib: DictAnyStr = ...,
nsmap: DictAnyStr = ...,
**extra: AnyStr) -> _Element:
pass
...
def SubElement(_parent: _Element, _tag: AnyStr,
attrib: DictAnyStr = ...,
nsmap: DictAnyStr = ...,
**extra: AnyStr) -> _Element:
pass
...
def ElementTree(element: _Element = ...,
file: Union[AnyStr, typing.IO] = ...,
parser: XMLParser = ...) -> _ElementTree:
pass
...
def ProcessingInstruction(target: AnyStr, text: AnyStr = ...) -> _Element:
pass
...
def parse(source: Union[AnyStr, typing.IO],
parser: XMLParser = ...,
base_url: AnyStr = ...) -> _ElementTree:
pass
...
def fromstring(text: AnyStr,
@@ -134,31 +134,31 @@ def tostring(element_or_tree: Union[_Element, _ElementTree],
class _ErrorLog:
pass
...
class Error(Exception):
pass
...
class LxmlError(Error):
def __init__(self, message: Any, error_log: _ErrorLog = ...) -> None: ...
error_log = ... # type: _ErrorLog
class DocumentInvalid(LxmlError):
pass
...
class LxmlSyntaxError(LxmlError, SyntaxError):
pass
...
class ParseError(LxmlSyntaxError):
pass
...
class XMLSyntaxError(ParseError):
pass
...
class _Validator:
pass
...
class DTD(_Validator):
def __init__(self,