Guido van Rossum
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 Waygood
5a8b9dafb3
Fix various py310 stubtest errors ( #7239 )
2022-02-16 11:47:49 -08:00
Alex Waygood
28a760cd2c
Improve pyclbr.pyi ( #7229 )
2022-02-16 07:01:27 -08:00
Nikita Sobolev
09395dd747
Add --disallow-untyped-decorators to mypy_test ( #7235 )
2022-02-16 01:47:52 -08:00
Alex Waygood
5e8a2a9364
Fix various pos-only stubtest complaints previously allowlisted ( #7228 )
2022-02-15 17:51:34 +01:00
Alex Waygood
96b06adf2c
Add missing descriptor methods in dataclasses and functools ( #7203 )
2022-02-15 06:45:49 -08:00
Alex Waygood
03dbe2206c
Improve pathlib stubs ( #7181 )
2022-02-12 18:42:04 -08:00
Nikita Sobolev
418574f82c
Improve socketserver ( #7073 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2022-02-11 17:22:00 -08:00
Nikita Sobolev
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 Waygood
348c38a0dd
Improve __all__ definitions for threading and _dummy_threading modules ( #7135 )
2022-02-05 08:07:02 -08:00
Eric Traut
90695fadd1
Updated pyright to latest version ( #7132 )
2022-02-04 21:09:00 -08:00
Sebastian Rittau
2dc53caffe
Improve abc module and builtin function decorators ( #5703 )
2022-02-02 16:22:32 +01:00
Nipunn Koorapati
90f5422df7
Add/fix types to a bunch of non-generated protobuf files ( #7017 )
2022-02-02 12:30:39 +01:00
Andrew Svetlov
56aa2088aa
Add BufferedProtocol.eof_received() ( #7043 )
2022-01-27 12:09:29 +01:00
Nikita Sobolev
bfda5c640b
Add mixins module to asyncio ( #6789 )
2022-01-25 12:53:55 +01:00
Alex Waygood
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
Versus
556e623a81
Add mmap.MAP_POPULATE from 3.10 ( #6964 )
2022-01-20 14:30:27 +01:00
Akuli
b77f994801
Improve _tkinter ( #6908 )
2022-01-13 17:05:20 +02:00
Akuli
e743ea9ca7
Improve turtle.ScrolledCanvas ( #6757 )
2022-01-09 11:24:45 -08:00
Sebastian Rittau
f4ce1ebaf8
Use positional-only arguments for IO ( #6851 )
2022-01-08 20:49:29 +02:00
Alex Waygood
a40d79a4e6
Use lowercase type everywhere ( #6853 )
2022-01-08 16:09:29 +01:00
Sebastian Rittau
38811a4495
Fix check consistent ( #6860 )
2022-01-08 15:35:42 +02:00
Nikita Sobolev
28a5e6bb7a
Stricter platform checks for constants in fcntl ( #6807 )
2022-01-07 19:40:13 +01:00
Sebastian Rittau
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 Rittau
e77a66aced
Update pyright ( #6840 )
2022-01-07 18:58:15 +02:00
Joseph Young
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 Waygood
582f1e9c5f
Make os.path.join() first parameter pos-only ( #6812 )
2022-01-04 15:38:46 +01:00
Alex Waygood
505ea72641
Never explicitly inherit from object in Python 3-only stubs ( #6777 )
2022-01-02 07:24:48 +01:00
Alex Waygood
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
Akuli
0f7dbd811e
move stat.FILE_ATTRIBUTE_* to _stat.pyi and fix availability ( #6761 )
2021-12-30 13:07:28 -06:00
Akuli
7fc402a6d0
Move IO_REPARSE_TAG_* constants to _stat ( #6760 )
2021-12-30 18:26:57 +01:00
Alex Waygood
7b4241b03f
Allowlists: mark several entries as wontfix, add note to inspect.Parameter entries ( #6756 )
2021-12-30 18:26:48 +02:00
Nikita Sobolev
971a738c8e
Add more constants to _winapi ( #6754 )
2021-12-30 17:06:58 +02:00
Alex Waygood
496313d875
Add various missing os constants ( #6753 )
2021-12-30 15:21:30 +02:00
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