mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-12 05:01:40 +08:00
Consistently use '= ...' for optional parameters.
This commit is contained in:
@@ -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=...): ...
|
||||
|
||||
@@ -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): ...
|
||||
|
||||
Reference in New Issue
Block a user