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
Alex Waygood
257e287fec
Stdlib: correct many parameter names ( #9815 )
2023-03-04 09:53:12 +00:00
Alex Waygood
fbc092b4cd
Stdlib: add defaults for several functions that delegate kwargs to other functions at runtime ( #9791 )
2023-02-21 23:31:25 -08:00
Avasam
3fc2f27990
Add missing types in xml.dom.minidom ( #9731 )
2023-02-19 21:49:00 +00:00
Will Frey
48ef9eace8
Update xml.sax.parse to accept StrPath ( #9708 )
2023-02-13 17:51:47 +01:00
Alex Waygood
9ed39d8796
Use typing_extensions.Self in the stdlib ( #9694 )
2023-02-09 09:12:13 +00:00
Alex Waygood
1d7dda7fa1
stdlib: Add defaults for positional-only parameters ( #9655 )
2023-02-01 21:44:08 +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
Avasam
aad1a14890
Use the FileDescriptorOrPath alias consistently in the stdlib ( #9513 )
2023-01-12 18:14:48 +00:00
Ben Blank
f5459640f8
Add None as a valid type in SAXParseException's second argument ( #9162 )
...
Closes #9161
2022-11-11 12:18:22 -08: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
86f9d93003
Update pyright to 1.1.278 ( #9077 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2022-11-03 15:32:10 +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
6903041744
Use CamelCase for type aliases in xml.etree.ElementPath.pyi ( #8335 )
2022-07-19 12:04:43 -07:00
Alex Waygood
e2ce7c6344
stdlib: audit more callback annotations ( #8209 )
2022-07-19 07:07:25 -07:00
Alex Waygood
6348a58b8b
Import Match and Pattern from re, not typing ( #8277 )
2022-07-12 15:32:48 +02:00
Alex Waygood
fbddd2c4e2
stdlib: enforce CamelCase for type alias names ( #8255 )
2022-07-07 17:45:23 +02:00
Rohit Patil
d96581ec0f
stdlib.xml: re-export ContentHandler & ErrorHandler (#8140 )
...
fixes python/typeshed#8107
2022-06-22 21:22:33 +01:00
Prometheus3375
91d6383d9d
Change return type of XMLPullParser.read_events() ( #8076 )
2022-06-14 19:15:29 +01:00
Alex Waygood
4941ac0263
Use the Any trick for xml.etree.ElementTree.getroot() ( #8069 )
...
Closes #7770
2022-06-14 18:31:19 +03:00
Alex Waygood
67828bd598
xml.etree.ElementTree.Element: remove inheritance from MutableSequence (#8056 )
2022-06-13 12:22:28 +02:00
Alex Waygood
b88ea4a499
Simplify __all__ for unittest and xml.etree ( #8029 )
2022-06-07 12:03:52 -07:00
Jelle Zijlstra
e7cbde0928
xml: stubtest fixes ( #7890 )
2022-05-20 13:03:45 +02:00
Prometheus3375
e833b5a095
Fix typing for XMLPullParser.feed() ( #7695 )
...
Closes #7681
2022-04-26 11:09:25 +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
Alex Waygood
1091521f60
stdlib: Add several missing __(deep)copy__ methods ( #7242 )
2022-02-16 18:57:41 -08:00
Alex Waygood
fbc279e3f5
stdlib: Add many missing dunder overrides ( #7231 )
2022-02-16 06:25:47 -08:00
Alex Waygood
7595e2e79b
Fix positional-only differences in xml ( #7225 )
2022-02-15 06:22:31 -08:00
Alex Waygood
66a229b709
stdlib: Add several missing comparison methods ( #7202 )
2022-02-14 11:09:52 -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
Nikita Sobolev
92d135a37c
Use TypeGuard in ElementTree.pyi ( #7059 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2022-01-28 11:33:45 +02:00