Consistently use '= ...' for optional parameters.

This commit is contained in:
Matthias Kramm
2015-11-09 13:55:00 -08:00
parent 375bf063b1
commit 94c9ce8fd0
278 changed files with 2085 additions and 2085 deletions

View File

@@ -7,12 +7,12 @@ from typing import Mapping
from xml.sax import handler
from xml.sax import xmlreader
def escape(data: str, entities: Mapping[str, str] = None) -> str: ...
def unescape(data: str, entities: Mapping[str, str] = None) -> str: ...
def quoteattr(data: str, entities: Mapping[str, str] = None) -> str: ...
def escape(data: str, entities: Mapping[str, str] = ...) -> str: ...
def unescape(data: str, entities: Mapping[str, str] = ...) -> str: ...
def quoteattr(data: str, entities: Mapping[str, str] = ...) -> str: ...
class XMLGenerator(handler.ContentHandler):
def __init__(self, out=None, encoding='') -> None: ...
def __init__(self, out=..., encoding=...) -> None: ...
def startDocument(self): ...
def endDocument(self): ...
def startPrefixMapping(self, prefix, uri): ...
@@ -26,7 +26,7 @@ class XMLGenerator(handler.ContentHandler):
def processingInstruction(self, target, data): ...
class XMLFilterBase(xmlreader.XMLReader):
def __init__(self, parent=None) -> None: ...
def __init__(self, parent=...) -> None: ...
def error(self, exception): ...
def fatalError(self, exception): ...
def warning(self, exception): ...
@@ -55,4 +55,4 @@ class XMLFilterBase(xmlreader.XMLReader):
def getParent(self): ...
def setParent(self, parent): ...
def prepare_input_source(source, base=''): ...
def prepare_input_source(source, base=...): ...

View File

@@ -34,7 +34,7 @@ class Locator:
def getSystemId(self): ...
class InputSource:
def __init__(self, system_id=None) -> None: ...
def __init__(self, system_id=...) -> None: ...
def setPublicId(self, public_id): ...
def getPublicId(self): ...
def setSystemId(self, system_id): ...
@@ -61,7 +61,7 @@ class AttributesImpl:
def keys(self): ...
def has_key(self, name): ...
def __contains__(self, name): ...
def get(self, name, alternative=None): ...
def get(self, name, alternative=...): ...
def copy(self): ...
def items(self): ...
def values(self): ...