From f5459640f8ce12f0b8bb2e765b40123de5edb698 Mon Sep 17 00:00:00 2001 From: Ben Blank Date: Fri, 11 Nov 2022 12:18:22 -0800 Subject: [PATCH] Add None as a valid type in SAXParseException's second argument (#9162) Closes #9161 --- stdlib/xml/sax/__init__.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/xml/sax/__init__.pyi b/stdlib/xml/sax/__init__.pyi index ff5f5b8df..b8ab4d439 100644 --- a/stdlib/xml/sax/__init__.pyi +++ b/stdlib/xml/sax/__init__.pyi @@ -15,7 +15,7 @@ class SAXException(Exception): def __getitem__(self, ix: Any) -> NoReturn: ... class SAXParseException(SAXException): - def __init__(self, msg: str, exception: Exception, locator: Locator) -> None: ... + def __init__(self, msg: str, exception: Exception | None, locator: Locator) -> None: ... def getColumnNumber(self) -> int: ... def getLineNumber(self) -> int: ... def getPublicId(self): ...