Add __all__ for modules beginning with 'u', 'x', 'w' and 'z' (#7374)

This commit is contained in:
Alex Waygood
2022-02-23 22:04:21 +00:00
committed by GitHub
parent 7b024f5e9a
commit 58e505eeb2
23 changed files with 292 additions and 3 deletions

View File

@@ -1,5 +1,7 @@
from typing import Any, Iterable, TypeVar
__all__ = ["NodeList", "EmptyNodeList", "StringTypes", "defproperty"]
_T = TypeVar("_T")
StringTypes: tuple[type[str]]

View File

@@ -4,6 +4,8 @@ from urllib.request import OpenerDirector
from xml.dom.expatbuilder import ExpatBuilder, ExpatBuilderNS
from xml.dom.minidom import Node
__all__ = ["DOMBuilder", "DOMEntityResolver", "DOMInputSource"]
# UNKNOWN TYPES:
# - `Options.errorHandler`.
# The same as `_DOMBuilderErrorHandlerType`?