Commit Graph

24 Commits

Author SHA1 Message Date
Alex Waygood
58e505eeb2 Add __all__ for modules beginning with 'u', 'x', 'w' and 'z' (#7374) 2022-02-23 23:04:21 +01: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
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
Nikita Sobolev
9a89e09753 Removed unused # noqa: F403 (#7032) 2022-01-25 09:21:11 +01:00
Alex Waygood
8d5d2520ac Use PEP 585 syntax wherever possible (#6717) 2021-12-28 11:31:43 +01:00
Sebastian Rittau
3fb2bcd4c1 Restore stubtest 0.930 (#6663) 2021-12-22 20:18:19 -08:00
Alex Waygood
ba2bfae4f9 Add xml.etree.ElementInclude.LimitedRecursiveIncludeError (#6547) 2021-12-08 16:27:56 +01:00
Alex Waygood
1fdd7e40af Add missing objects to xml.etree.ElementTree (#6540)
Co-authored-by: Akuli <akuviljanen17@gmail.com>
2021-12-08 15:02:54 +02:00
Alex Waygood
98af7d667f Improve stubs for sequence types (#6386) 2021-11-26 19:09:38 -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
f0bf6eebbd AnyStr cleanup (#5487)
* Replace all uses of StrPath, BytesPath, and AnyPath in Python 2 stubs.
* Add StrOrBytesPath as preferred alias for AnyPath.
* Replace all remaining AnyPath instances with StrOrBytesPath.
* Mark AnyPath as obsolete.

Part of #5470
2021-05-17 20:45:48 +02: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
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
naglis
6a8b6cc674 Add stub for xml.etree.ElementTree.indent (#5178) 2021-04-03 20:46:13 +03:00
Edgar Handal
5bc6726e3f Set xml.etree iterfind return types to Generator (#5126) 2021-03-18 09:31:00 +01: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