Max Muoto
7eac47455a
Use Final for xml constants ( #12455 )
2024-08-05 11:13:56 +02:00
Max Muoto
0df6028dc8
Use Final for Constant Literals in the stdlib ( #12332 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2024-07-15 18:07:34 +01:00
Adam Dangoor
4a33b2f3a0
Add some types for xml.dom.minidom.Text ( #11725 )
2024-04-06 14:45:24 +02:00
Sebastian Rittau
630b49a291
Replace various Incompletes in stdlib ( #11673 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2024-04-01 15:20:01 +01:00
Sebastian Rittau
027115e624
Remove bare incompletes ( #11670 )
2024-03-30 18:35:57 -07:00
Sebastian Rittau
53a8193d64
Update typing_extensions imports in stdlib ( #11244 )
...
Co-authored-by: AlexWaygood <alex.waygood@gmail.com >
2024-01-05 08:15:19 -08:00
Wesley Collin Wright
cedf3b5684
stdlib/xml: fix return types for toxml/toprettyxml methods ( #10061 )
2023-04-22 16:36:57 -06:00
Ali Hamdan
6bb40e95ac
xml: NodeList.length is read-only ( #9994 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2023-03-31 23:55:46 +01:00
Sebastian Rittau
f6f1fa3df4
[minidom] Annotate getElement* methods correctly ( #9919 )
2023-03-22 15:17:36 +00:00
Francesc Elies
d13bcbb76e
[minidom] add missing return types ( #9917 )
2023-03-22 12:21:05 +01:00
Alex Waygood
dd2818a41d
Stdlib: add container default values ( #9909 )
2023-03-21 09:12:34 +01:00
Avasam
3fc2f27990
Add missing types in xml.dom.minidom ( #9731 )
2023-02-19 21:49:00 +00:00
Alex Waygood
9ed39d8796
Use typing_extensions.Self in the stdlib ( #9694 )
2023-02-09 09:12:13 +00:00
Alex Waygood
33a62ae42d
Add more defaults to the stdlib ( #9606 )
...
Continuing work towards #8988 .
The first five commits were created using stubdefaulter on various Python versions; the following commits were all created manually by me to fix various problems. The main things this adds that weren't present in #9501 are:
- Defaults in Windows-only modules and Windows-only branches (because I'm running a Windows machine)
- Defaults in non-py311 branches
- Defaults for float parameters
- Defaults for overloads
2023-01-29 01:51:23 +00:00
Jelle Zijlstra
ddfaca3200
stdlib: add argument default values ( #9501 )
2023-01-18 09:37:34 +01:00
Avasam
c70d303985
Audit stdlib object annotations ( #9519 )
2023-01-17 15:40:00 +00:00
Jelle Zijlstra
ec4ec33639
xml: improve bytes types ( #9110 )
...
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com >
2022-11-10 20:43:26 -08:00
Nikita Sobolev
62a6c3d616
Annotate known magic-method return types ( #9131 )
2022-11-08 18:28:42 +00:00
Nikita Sobolev
380022c650
Remove empty __init__ methods ( #8816 )
2022-09-30 13:08:41 +01:00
Alex Waygood
976fdae300
xml stubs: Any -> Incomplete (#8576 )
2022-08-22 16:42:37 +01:00
Kevin Kirsche
269c07589a
Add more annotations to xml.dom.minidom and xml.sax.handler ( #8590 )
2022-08-22 16:20:34 +01:00
Kevin Kirsche
fb62ccabf5
Add missing annotations for xml.dom.minidom.DOMImplementation ( #8556 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-08-20 20:33:40 +01:00
Kevin Kirsche
308291033f
xml: add missing xml.dom.minidom.*.nodeType type ( #8557 )
2022-08-18 19:56:55 -07:00
Nikita Sobolev
bcd770bad3
Always return True from xml.dom.minidom.Node.__bool__ ( #8480 )
2022-08-04 12:23:34 +02:00
Tetsuo Kiso
9fe771f31d
xml.dom.minidom: add more missing type annotations to methods on Element ( #8355 )
2022-07-21 17:45:52 +02:00
Tetsuo Kiso
10bc4b0584
xml.dom.minidom: add missing type annotation of Element.getAttribute ( #8350 )
2022-07-21 08:18:58 +02:00
Alex Waygood
97a74bc1aa
Import from collections.abc wherever possible ( #7635 )
2022-04-18 12:50:37 +02:00
Alex Waygood
740193a8fc
Use TypeAlias where possible for type aliases ( #7630 )
2022-04-15 18:01:00 -07:00
Alex Waygood
3ab250eec8
Use PEP 604 syntax wherever possible ( #7493 )
2022-03-16 16:01:33 +01:00
Alex Waygood
58e505eeb2
Add __all__ for modules beginning with 'u', 'x', 'w' and 'z' ( #7374 )
2022-02-23 23:04:21 +01:00
Shantanu
584e18491b
xml.dom.minidom: add Node.__bool__ ( #7323 )
...
Co-authored-by: hauntsaninja <>
2022-02-20 15:22:02 -08:00
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