Commit Graph
716 Commits
Author SHA1 Message Date
Alex WaygoodandGitHub bdcaea4305 cgi: Add print_exception and print_arguments (#7359) 2022-02-22 08:38:02 -08:00
Sebastian RittauandGitHub 7a81bd41e9 Re-introduce the 'stubtest' key for third-party packages (#7351)
Some distributions can't be tested with stubtest for a variety of
reasons or because of bugs in stubtest. This key:

* let's us keep metadata about a distribution in one place,
* prevents us from modifying the scripts because of issues with a
  specific distribution, and
* will trigger tests if only the key is changed.
2022-02-22 15:59:27 +01:00
ShantanuGitHubhauntsaninja <>
c2fb0fb814 Downgrade stubtest a little (#7346)
Fixes #7344 for now.

As discussed in that issue, I think it might make sense to revert the
change to check positional-only arguments on dunders for now, since it
seems to be mostly busywork and has very little benefit for end users.

However, that'll happen on stubtest master, which typeshed isn't yet
ready for.

Co-authored-by: hauntsaninja <>
2022-02-21 17:05:46 -08:00
ShantanuGitHubhauntsaninja <>
075b8e02eb Update stubtest for async and dunder pos only checking (#7333)
Co-authored-by: hauntsaninja <>
2022-02-21 15:54:16 -08:00
Nikita SobolevandGitHub 4d169eaa83 Adds bdist_wininst definition (#7249) 2022-02-20 22:58:48 -08:00
Alex WaygoodandGitHub 07de01f29e Add __all__ to modules beginning with 'm' (#7330) 2022-02-20 14:08:07 -08:00
ShantanuGitHubhauntsaninja <>
823592e100 Update stubtest for final checking (#7312)
Co-authored-by: hauntsaninja <>
2022-02-19 18:53:15 -08:00
Alex WaygoodandGitHub b74acc7546 Add all the email __all__s (#7304) 2022-02-19 17:53:29 -08:00
ShantanuGitHubhauntsaninja <>
ebdbd564be sqlalchemy: skip stubtest for now (#7310)
Co-authored-by: hauntsaninja <>
2022-02-19 17:47:55 -08:00
ShantanuGitHubhauntsaninja <>
879b617366 Update stubtest for submodule versions, typeddict fix (#7306)
First step in #7305

Co-authored-by: hauntsaninja <>
2022-02-19 15:53:40 -08:00
35bddd289f Add asyncio.taskgroups and new Task methods (#7240)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2022-02-17 00:32:20 +02:00
Alex WaygoodandGitHub 5a8b9dafb3 Fix various py310 stubtest errors (#7239) 2022-02-16 11:47:49 -08:00
Alex WaygoodandGitHub 28a760cd2c Improve pyclbr.pyi (#7229) 2022-02-16 07:01:27 -08:00
Nikita SobolevandGitHub 09395dd747 Add --disallow-untyped-decorators to mypy_test (#7235) 2022-02-16 01:47:52 -08:00
Alex WaygoodandGitHub 5e8a2a9364 Fix various pos-only stubtest complaints previously allowlisted (#7228) 2022-02-15 17:51:34 +01:00
Alex WaygoodandGitHub 96b06adf2c Add missing descriptor methods in dataclasses and functools (#7203) 2022-02-15 06:45:49 -08:00
Alex WaygoodandGitHub 03dbe2206c Improve pathlib stubs (#7181) 2022-02-12 18:42:04 -08:00
418574f82c Improve socketserver (#7073)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-02-11 17:22:00 -08:00
Nikita SobolevandGitHub 9150db52a6 Improve pstats typing (#7174)
* Add __all__
* Use Literal for Stats.sort_stats() argument type.
* Add FunctionProfile, StatsProfile, and Stats.get_stats_profile() (Python 3.9+)
2022-02-11 12:30:00 +01:00
Alex WaygoodandGitHub 348c38a0dd Improve __all__ definitions for threading and _dummy_threading modules (#7135) 2022-02-05 08:07:02 -08:00
Eric TrautandGitHub 90695fadd1 Updated pyright to latest version (#7132) 2022-02-04 21:09:00 -08:00
Sebastian RittauandGitHub 2dc53caffe Improve abc module and builtin function decorators (#5703) 2022-02-02 16:22:32 +01:00
Nipunn KoorapatiandGitHub 90f5422df7 Add/fix types to a bunch of non-generated protobuf files (#7017) 2022-02-02 12:30:39 +01:00
Andrew SvetlovandGitHub 56aa2088aa Add BufferedProtocol.eof_received() (#7043) 2022-01-27 12:09:29 +01:00
Nikita SobolevandGitHub bfda5c640b Add mixins module to asyncio (#6789) 2022-01-25 12:53:55 +01:00
Alex WaygoodandGitHub a9ae6b246c Remove many checks from check_new_syntax.py (#7023)
These are now checked by the flake8-pyi plugin, which is better tested and more comprehensive. Removing these checks from `check_new_syntax.py` will reduce the risk of a contributor getting two nearly identical error messages for the same line in a PR.
2022-01-24 07:30:27 -08:00
VersusandGitHub 556e623a81 Add mmap.MAP_POPULATE from 3.10 (#6964) 2022-01-20 14:30:27 +01:00
AkuliandGitHub b77f994801 Improve _tkinter (#6908) 2022-01-13 17:05:20 +02:00
AkuliandGitHub e743ea9ca7 Improve turtle.ScrolledCanvas (#6757) 2022-01-09 11:24:45 -08:00
Sebastian RittauandGitHub f4ce1ebaf8 Use positional-only arguments for IO (#6851) 2022-01-08 20:49:29 +02:00
Alex WaygoodandGitHub a40d79a4e6 Use lowercase type everywhere (#6853) 2022-01-08 16:09:29 +01:00
Sebastian RittauandGitHub 38811a4495 Fix check consistent (#6860) 2022-01-08 15:35:42 +02:00
Nikita SobolevandGitHub 28a5e6bb7a Stricter platform checks for constants in fcntl (#6807) 2022-01-07 19:40:13 +01:00
2ad8db51ad Update to mypy 0.931 (#6850)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2022-01-07 19:21:10 +01:00
Sebastian RittauandGitHub e77a66aced Update pyright (#6840) 2022-01-07 18:58:15 +02:00
ff64deb331 Add missing function attributes to builtins.function (#6804)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-01-04 20:41:59 +02:00
Alex WaygoodandGitHub 582f1e9c5f Make os.path.join() first parameter pos-only (#6812) 2022-01-04 15:38:46 +01:00
Alex WaygoodandGitHub 505ea72641 Never explicitly inherit from object in Python 3-only stubs (#6777) 2022-01-02 07:24:48 +01:00
e434b23741 Allowlists: move entries relating to __all__ weirdness to their own section (#6767)
Co-authored-by: Akuli <akuviljanen17@gmail.com>
2021-12-31 14:31:18 +02:00
AkuliandGitHub 0f7dbd811e move stat.FILE_ATTRIBUTE_* to _stat.pyi and fix availability (#6761) 2021-12-30 13:07:28 -06:00
AkuliandGitHub 7fc402a6d0 Move IO_REPARSE_TAG_* constants to _stat (#6760) 2021-12-30 18:26:57 +01:00
Alex WaygoodandGitHub 7b4241b03f Allowlists: mark several entries as wontfix, add note to inspect.Parameter entries (#6756) 2021-12-30 18:26:48 +02:00
Nikita SobolevandGitHub 971a738c8e Add more constants to _winapi (#6754) 2021-12-30 17:06:58 +02:00
Alex WaygoodandGitHub 496313d875 Add various missing os constants (#6753) 2021-12-30 15:21:30 +02:00
AkuliandGitHub a89e5bb0cf Relax check_new_syntax.py to allow elif statements for old versions (#6729) 2021-12-29 18:50:11 +02:00
Alex WaygoodandGitHub 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
AkuliandGitHub 4aa4cb9ae2 stubtest_third_party: do not install apt packages in the same script (#6714) 2021-12-28 11:33:49 +01:00
Alex WaygoodandGitHub 8d5d2520ac Use PEP 585 syntax wherever possible (#6717) 2021-12-28 11:31:43 +01:00
Sebastian RittauandGitHub 14e5d16c3a Replace METADATA stubtest key with stubtest_apt_packages (#6704) 2021-12-27 17:28:59 +01:00
Alex WaygoodandGitHub 975b3e901b Always alias collections.abc.Set (#6712) 2021-12-27 17:09:47 +01:00