Commit Graph

25 Commits

Author SHA1 Message Date
Rogdham
63c20e3ce7 xml: use SupportsRead/SupportsWrite instead of IO (#7241) 2022-02-16 19:02:30 -08:00
Shantanu
b88a6f19cd Upgrade black version (#7089) 2022-01-30 16:27:06 -08:00
Alex Waygood
45a2dad83c Reduce use of Any in equality methods (#7081)
Co-authored-by: Akuli <akuviljanen17@gmail.com>
2022-01-30 00:59:00 +02:00
Alex Waygood
a40d79a4e6 Use lowercase type everywhere (#6853) 2022-01-08 16:09:29 +01:00
Alex Waygood
8d5d2520ac Use PEP 585 syntax wherever possible (#6717) 2021-12-28 11:31:43 +01:00
Alex Waygood
1d5857e1e0 Add xml.dom.InvalidCharacterErr (#6538)
* Update __init__.pyi

* Update py3_common.txt
2021-12-07 13:32:24 -08:00
Alex Waygood
3aab6f1348 Add missing properties to xml.dom.minidom (#6526) 2021-12-07 18:40:33 +02:00
Alex Waygood
6b2218846c Add stub for xml.dom.expatbuilder (#6517)
Co-authored-by: Akuli <akuviljanen17@gmail.com>
2021-12-06 20:39:01 +02:00
Alex Waygood
d5f9c95c26 Improve stub file for xml/dom/xmlbuilder.py (#6171)
Co-authored-by: Akuli <akuviljanen17@gmail.com>
2021-11-29 15:46:09 +02:00
Akuli
a5bc1e037f Add mypy error codes to '# type: ignore' comments (#6379) 2021-11-26 07:07:56 +01:00
Alex Waygood
9707cb00f6 Python 3.11 removals in stdlib (#6374)
Co-authored-by: Akuli <akuviljanen17@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2021-11-25 19:34:12 +02:00
Akuli
994b69ef8f Use lowercase tuple where possible (#6170) 2021-10-14 17:18:19 -07:00
Rebecca Chen
431c4f7fc1 Improve a few types in xml.dom.minidom. (#5923)
* Changes the return type of getDOMImplementation from implicit Any to
  DOMImplementation | None.
* DOMImplementation.createDocument() and createDocumentType() allow None for all arguments.
2021-08-13 23:28:47 +02:00
Rebecca Chen
774da45449 Add some missing properties to xml.dom.minidom.Node. (#5919) 2021-08-13 21:57:22 +02:00
Sténio Jacinto
32a6257de0 Add missing stdlib xml stubs (#5895) 2021-08-09 22:41:55 +02:00
Akuli
ce11072dbe Big diff: use lower-case list and dict (#5888) 2021-08-08 09:26:35 -07:00
Akuli
ee487304d7 Big diff: Use new "|" union syntax (#5872) 2021-08-08 11:05:21 +02:00
an onion
c4faf466b3 Add type stubs for xml.dom.pulldom (#5803)
Co-authored-by: Stephanie Ding <sym@fb.com>
2021-07-24 14:53:03 +02:00
Anton Grübel
d68701c0ec Use _typeshed.Self with __enter__ (#5723)
Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
Co-authored-by: Akuli <akuviljanen17@gmail.com>
2021-07-04 21:10:01 +03:00
Sebastian Rittau
841a365284 Remove compatibility aliases (#5464)
* Remove compatibility aliases

Remove a few instances of Text

Use aliases from _typeshed

* Remove unused imports
2021-05-15 20:49:20 +03:00
Shantanu
851c187287 xml.dom.minidom: add missing definitions (#5280)
Co-authored-by: hauntsaninja <>
2021-05-02 12:04:41 -07:00
Shantanu
537aec0466 xml.dom.minicompat: complete stub (#5281) 2021-05-01 21:39:54 -07:00
Eric Traut
c7c025ae08 Removed a bunch of unused import symbols detected by pyright. (#5060)
Co-authored-by: Eric Traut <erictr@microsoft.com>
2021-02-23 19:46:46 +01:00
Rebecca Chen
2682c1d00a Let xml.dom.minidom.parse() accept files. (#5005)
The documentation says, "The parse() function can take either a filename
or an open file object."
(https://docs.python.org/3.8/library/xml.dom.minidom.html). The function
was annotated as only accepting a str, so I added IO[Any].
2021-02-04 16:01:55 -08:00
Ivan Levkivskyi
16ae4c6120 Re-organize directory structure (#4971)
See discussion in #2491

Co-authored-by: Ivan Levkivskyi <ilevkivskyi@dropbox.com>
2021-01-27 12:00:39 +00:00