Abel Cheung
578b815ef7
Add missing arg annotation for xml.sax.handler.ContentHandler ( #12122 )
2024-06-20 00:40:58 -07:00
Sebastian Rittau
23604858a6
Remove Python 3.7 branches ( #11238 )
2024-01-05 11:39:39 +01:00
Stephen Morton
1574ff3973
add xml.sax._exceptions module ( #11147 )
2023-12-11 19:48:30 +01:00
Alex Waygood
10febc4fe0
stdlib: remove unused type: ignore comments ( #11061 )
2023-11-23 14:00:07 +01:00
Andrey Rakhmatullin
7b18a0be91
Fix type hint for xml.sax.saxutils.XMLGenerator.__init__(). ( #10979 )
...
The `out` parameter accepts objects with `write(__o: bytes)`, not `write(__o: str)` methods.
2023-11-06 14:31:50 +01:00
Screwtapello
49b717ca52
stdlib/xml/sax: Add type annotations ( #10606 )
...
* stdlib/xml/sax: Type annotations for commonly used methods.
* stdlib/xml/sax: More annotations.
It turns out SAX's definition of a "qname" is exactly the opposite of
ElementTree's. With that understanding, let's annotate the Attributes*Impl
classes too.
* stdlib/xml/sax: I better understand what AttributesNSImpl is doing now.
* Update third-party library stubs to agree with the new SAX annotations.
2023-09-22 20:08:13 -07:00
Alex Waygood
dd2818a41d
Stdlib: add container default values ( #9909 )
2023-03-21 09:12:34 +01:00
Will Frey
48ef9eace8
Update xml.sax.parse to accept StrPath ( #9708 )
2023-02-13 17:51:47 +01:00
Jelle Zijlstra
ddfaca3200
stdlib: add argument default values ( #9501 )
2023-01-18 09:37:34 +01: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
380022c650
Remove empty __init__ methods ( #8816 )
2022-09-30 13:08:41 +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
Rohit Patil
d96581ec0f
stdlib.xml: re-export ContentHandler & ErrorHandler (#8140 )
...
fixes python/typeshed#8107
2022-06-22 21:22:33 +01:00
Jelle Zijlstra
e7cbde0928
xml: stubtest fixes ( #7890 )
2022-05-20 13:03:45 +02:00
Alex Waygood
97a74bc1aa
Import from collections.abc wherever possible ( #7635 )
2022-04-18 12:50:37 +02:00
Rogdham
63c20e3ce7
xml: use SupportsRead/SupportsWrite instead of IO ( #7241 )
2022-02-16 19:02:30 -08:00
Akuli
994b69ef8f
Use lowercase tuple where possible ( #6170 )
2021-10-14 17:18:19 -07: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
Sebastian Rittau
6a9c89e928
Replace 'Text' with 'str' in py3 stdlib ( #5466 )
2021-05-16 07:10:48 -07:00
Akuli
17dcea4a68
Akuli and srittau: Remove Python 2 branches from Python 3 stubs ( #5461 )
...
* run script and do some manual changes (Akuli)
* do the whole thing manually (srittau)
* merge changes (Akuli)
Co-authored-by: Sebastian Rittau <srittau@rittau.biz >
2021-05-15 15:33:39 +03:00
hatal175
413614aa83
xml stubtest exceptions ( #5161 )
...
* Explaining xml stubtest exceptions
* Fix 3.6/3.7 ExternalEntityParserCreate
* Fix typos and formatting
* Missing return type
* Reverting ExternalEntityParserCreate change to see error
* Remove unused sys import
* Readd ExternalEntityParserCreate with explanations
2021-04-08 17:43:51 -07: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