Commit Graph

522 Commits

Author SHA1 Message Date
Akuli a89e5bb0cf Relax check_new_syntax.py to allow elif statements for old versions (#6729) 2021-12-29 18:50:11 +02:00
Alex Waygood a82a4bc62b email: add Message methods (#6731)
Add `email.message.Message` methods, mark `email.iterators.walk` as wontfix
2021-12-29 10:40:06 -06:00
Akuli 4aa4cb9ae2 stubtest_third_party: do not install apt packages in the same script (#6714) 2021-12-28 11:33:49 +01:00
Alex Waygood 8d5d2520ac Use PEP 585 syntax wherever possible (#6717) 2021-12-28 11:31:43 +01:00
Sebastian Rittau 14e5d16c3a Replace METADATA stubtest key with stubtest_apt_packages (#6704) 2021-12-27 17:28:59 +01:00
Alex Waygood 975b3e901b Always alias collections.abc.Set (#6712) 2021-12-27 17:09:47 +01:00
Akuli 66ed211691 Re-enable stdlib stubtest on macos (#6696) 2021-12-26 19:59:04 +01:00
Alex Waygood 0e75580381 Add missing attributes to contextlib._(Async)GeneratorContextManager (#6676) 2021-12-26 14:05:49 +01:00
Sebastian Rittau bb77f39b7c Add a 'stubtest' flag to METADATA.toml (#6687)
Co-authored-by: Akuli <akuviljanen17@gmail.com>
2021-12-25 17:02:57 +02:00
Sebastian Rittau f9453fad5a Continue third-party stubtest on failure (#6686) 2021-12-24 21:11:18 +02:00
Sebastian Rittau 3fb2bcd4c1 Restore stubtest 0.930 (#6663) 2021-12-22 20:18:19 -08:00
Joseph Young 40f2cb6e39 HTMLParser: Add missing stubs for attributes and methods (#6658)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2021-12-22 19:32:35 +02:00
Sebastian Rittau bf246b28a9 Update to mypy 0.921 (#6657)
Test third-party stubs with typeshed from mypy
2021-12-22 07:57:07 -08:00
Sebastian Rittau 426ce065b2 Various small SQLAlchemy type improvements (#6623) 2021-12-22 07:49:20 -08:00
Alex Waygood 5dcca3fe46 Improve stubs for email.policy (#6631)
* Add the ABCMeta metaclass, present at runtime.
* Add missing attributes from the allowlist, which are documented.
* Annotate the __init__ methods according to the documentation.
2021-12-19 23:38:08 +01:00
Alex Waygood ae725c3f10 Add test to ensure certain names are not imported from typing_extensions (#6619) 2021-12-17 14:50:25 -08:00
Alex Waygood 0b75d71303 Add a structseq class to _typeshed (#6560)
Co-authored-by: Akuli <akuviljanen17@gmail.com>
2021-12-17 13:42:09 -08:00
Jelle Zijlstra 183a43a7e0 Fixes to curses stubs (#6620) 2021-12-17 18:39:00 +01:00
Sebastian Rittau 6f2ff7e895 Create SQLalchemy stubs using stubgen (#6585) 2021-12-17 09:38:23 -08:00
Shantanu 2ad00c9664 Use stubtest 0.920 (#6589)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
Co-authored-by: Akuli <akuviljanen17@gmail.com>
2021-12-17 13:58:11 +02:00
Alex Waygood 3d9599cec1 Improve stubs for email.headerregistry (#6588)
* Add max_count class vars
* Add init() methods
* Fix ContentDispositionHeader.content_disposition return type
2021-12-16 12:42:07 +01:00
Shantanu 7103b0be2d turtle: add RawTurtle.screens (#6594) 2021-12-16 08:55:09 +01:00
Shantanu d84a03829f Revert addition of class_getitem to PathLike (#6591)
This was added in #5869
This breaks all PathLike classes that don't have class_getitem
2021-12-15 19:25:08 -08:00
Alex Waygood cc054efa79 Make name and value read-only for Enums, part II (#6578) 2021-12-13 17:00:28 +01:00
Alex Waygood 0f2e87e42a Make name and value read-only for Enums (#6576) 2021-12-13 16:08:49 +01:00
Alex Waygood c3cd88ba91 Add EnumMeta.__new__ & EnumMeta.__call__ (#6572) 2021-12-13 12:33:54 +01:00
Alex Waygood c7efc3741e Allowlists: mark email.contentmanager entries as "wontfix" (#6570) 2021-12-12 17:07:27 +02:00
Alex Waygood 84fd495b65 Update importlib to reflect recent changes (#6557) 2021-12-10 14:32:55 +01:00
Alex Waygood e330a74dc3 Allowlists: mark cgi entries as "wontfix" (#6559) 2021-12-10 14:27:58 +01:00
Alex Waygood bbde06867c Allowlists: add note to abstractstaticmethod/abstractstaticmethod entries (#6553) 2021-12-09 06:37:17 -08:00
Alex Waygood 65f0e8b770 Improve pydoc stubs (#6554) 2021-12-09 14:28:35 +01:00
Alex Waygood 64fa02ae2c Allowlists: mark profile.Profile entries as "wontfix" (#6548) 2021-12-08 09:32:23 -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 c6b32eb904 allowlists: delete redundant collections.abc entries (#6542) 2021-12-08 00:56:33 -08:00
Alex Waygood 1d5857e1e0 Add xml.dom.InvalidCharacterErr (#6538)
* Update __init__.pyi

* Update py3_common.txt
2021-12-07 13:32:24 -08:00
Akuli dc4c9534c7 allowlists: add comment to hmac.HMAC.blocksize (#6539) 2021-12-07 13:13:35 -08:00
Alex Waygood 3aab6f1348 Add missing properties to xml.dom.minidom (#6526) 2021-12-07 18:40:33 +02:00
Alex Waygood 4ce28b015a Allowlists: mark Pickler.memo as wontfix, note that pkg.ImpLoader is deprecated (#6536) 2021-12-07 18:27:19 +02:00
Akuli 7155bdae63 Re-export more os functions in posix, tweak availability on linux (#6529) 2021-12-07 16:10:41 +01:00
Alex Waygood 14f2e0feb9 Allowlists: mark WindowsRegistryFinder entries as "wontfix" (#6534) 2021-12-07 16:36:34 +02:00
Alex Waygood 10fe37fe64 Allowlists: mark wsgiref entries as "wontfix" (#6532) 2021-12-07 16:11:59 +02:00
Akuli 44f71867c7 add tkinter.EventType aliases (#6516) 2021-12-07 15:10:39 +02:00
Alex Waygood d27bc8d176 Update allowlist notes (#6528)
The note next to `asyncore` and `asynchat` is no longer strictly accurate following the decision of the steering Council to revert the removal of these modules in 3.11: https://github.com/python/steering-council/issues/86#issuecomment-987412171
2021-12-07 00:36:09 -08:00
Alex Waygood a69ef8f1ad Clean up threading.pyi (#6525)
- Adds comments to aliases in the `threading` module to indicate that they're deprecated.
- Adds two missing aliases, for consistency.
- Closes #6494
2021-12-06 16:21:27 -08: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
Akuli af85e18bec tkinter Pack,Grid,Place: delete commented-out aliases and explain in allowlist (#6518) 2021-12-06 09:09:06 -08:00
Akuli 08649177f1 Add codecs.BOM* constants (#6515) 2021-12-06 17:36:09 +02:00
Alex Waygood 956ee62173 Allowlists: move distutils entries to their own section (#6513)
`distutils` is deprecated in its entirety, slated for removal in 3.12. It makes sense to move these entries to their own section.
2021-12-06 16:28:59 +02:00
Sebastian Rittau 206e1ae91b Remove 'py3' from requirements filename (#6509) 2021-12-06 12:59:04 +02:00