mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-04 00:43:45 +08:00
Add xml.__all__, remove import not existing at runtime (#13048)
This commit is contained in:
1 parent
921c65304e
commit
971f0c64c6
2 files changed
+5
-1
No files matched your search
@@ -591,8 +591,10 @@ email.mime
|
||||
email.parser
|
||||
email.quoprimime
|
||||
email.utils
|
||||
xml.__all__
|
||||
xml.dom
|
||||
xml.etree
|
||||
xml.parsers
|
||||
xml.sax
|
||||
|
||||
# Missing aliases to existing methods that not many people seem to use.
|
||||
|
||||
@@ -1 +1,3 @@
|
||||
from xml import parsers as parsers
|
||||
# At runtime, listing submodules in __all__ without them being imported is
|
||||
# valid, and causes them to be included in a star import. See #6523
|
||||
__all__ = ["dom", "parsers", "sax", "etree"] # noqa: F822 # pyright: ignore[reportUnsupportedDunderAll]
|
||||
Reference in new issue
Block a user