mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-23 19:41:51 +08:00
Big diff: use lower-case list and dict (#5888)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import sys
|
||||
from typing import IO, Any, Iterable, List, NoReturn
|
||||
from typing import IO, Any, Iterable, NoReturn
|
||||
from xml.sax.handler import ContentHandler, ErrorHandler
|
||||
from xml.sax.xmlreader import Locator, XMLReader
|
||||
|
||||
@@ -20,13 +20,13 @@ class SAXNotRecognizedException(SAXException): ...
|
||||
class SAXNotSupportedException(SAXException): ...
|
||||
class SAXReaderNotAvailable(SAXNotSupportedException): ...
|
||||
|
||||
default_parser_list: List[str]
|
||||
default_parser_list: list[str]
|
||||
|
||||
if sys.version_info >= (3, 8):
|
||||
def make_parser(parser_list: Iterable[str] = ...) -> XMLReader: ...
|
||||
|
||||
else:
|
||||
def make_parser(parser_list: List[str] = ...) -> XMLReader: ...
|
||||
def make_parser(parser_list: list[str] = ...) -> XMLReader: ...
|
||||
|
||||
def parse(source: str | IO[str] | IO[bytes], handler: ContentHandler, errorHandler: ErrorHandler = ...) -> None: ...
|
||||
def parseString(string: bytes | str, handler: ContentHandler, errorHandler: ErrorHandler | None = ...) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user