Skip to content
This repository has been archived by the owner on Dec 27, 2021. It is now read-only.

Commit

Permalink
Added partial type stubs for stdlib xml (python#4777)
Browse files Browse the repository at this point in the history
Added empty stubs for xml.dom.minidom.parse and xml.dom.minidom.parseString, and other modules under xml.dom

Co-authored-by: Stephanie Ding <[email protected]>
Co-authored-by: Shantanu <[email protected]>
  • Loading branch information
3 people authored Nov 21, 2020
1 parent ba22339 commit 0954648
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
3 changes: 3 additions & 0 deletions stdlib/2and3/xml/dom/expatbuilder.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from typing import Any

def __getattr__(name: str) -> Any: ... # incomplete
3 changes: 3 additions & 0 deletions stdlib/2and3/xml/dom/minicompat.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from typing import Any

def __getattr__(name: str) -> Any: ... # incomplete
5 changes: 4 additions & 1 deletion stdlib/2and3/xml/dom/minidom.pyi
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
from typing import Any
from typing import Any, Optional
from xml.sax.xmlreader import XMLReader

def parse(file: str, parser: Optional[XMLReader] = ..., bufsize: Optional[int] = ...): ...
def parseString(string: str, parser: Optional[XMLReader] = ...): ...
def __getattr__(name: str) -> Any: ... # incomplete
3 changes: 3 additions & 0 deletions stdlib/2and3/xml/dom/xmlbuilder.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from typing import Any

def __getattr__(name: str) -> Any: ... # incomplete

0 comments on commit 0954648

Please sign in to comment.