Alex Waygood
7cbb579a44
Make __wrapped__ read-only on classmethods and staticmethods ( #7694 )
2022-04-25 22:27:06 -06:00
Jelle Zijlstra
573539ba2a
multiprocessing: add shutdown_timeout param to BaseManager ( #7692 )
...
python/cpython#32112
2022-04-25 22:12:56 -06:00
Jelle Zijlstra
85a6f0ffe9
socket: add all_errors param to create_connection ( #7691 )
...
python/cpython#91704
2022-04-25 22:10:29 -06:00
Jelle Zijlstra
c8a978f756
typing: Add dataclass_transform ( #7690 )
...
python/cpython#91861
2022-04-25 22:06:32 -06:00
Jelle Zijlstra
ac2b24c08f
warnings: New arguments to catch_warnings() in 3.11 ( #7685 )
2022-04-25 21:19:29 -06:00
Jelle Zijlstra
125f9b4275
sqlite3: Add sequence methods to Blob ( #7684 )
...
python/cppython#91599
2022-04-25 20:17:09 -07:00
Jelle Zijlstra
08ae9f324b
subprocess: Add _USE_VFORK and _USE_POSIX_SPAWN ( #7687 )
...
These are now documented: python/cpython#91490
2022-04-25 21:13:39 -06:00
Sebastian Rittau
3a98e8be6b
Update redis stubs to 4.2 ( #7675 )
...
Closes #7597
2022-04-23 22:15:10 -07:00
Jelle Zijlstra
02e0c98d62
Buffer support for re ( #7679 )
2022-04-23 18:28:35 -07:00
Jelle Zijlstra
5dad506bf2
binascii: Improve bytes types ( #7677 )
...
Add missing arguments to b2a_hex()
2022-04-23 20:57:02 +02:00
Jelle Zijlstra
00f4031915
pickle: accept ReadableBuffer ( #7678 )
2022-04-23 20:54:20 +02:00
Sebastian Rittau
2a0fc1b582
Annotate Error and Diagnostics ( #7671 )
...
Move cursor class to top of file so it can be used as base class
2022-04-21 21:19:34 -07:00
Alex Waygood
2773480d13
Add regression tests for builtins.pow and object.__reduce__ ( #7663 )
2022-04-21 21:17:37 -07:00
Jelle Zijlstra
66383ee8e3
unittest.mock: target must be a str ( #7672 )
...
See [the CPython source](eaa85cb22f/Lib/unittest/mock.py (L1754) ). It calls `_get_target`, and [that](eaa85cb22f/Lib/unittest/mock.py (L1594) ) does `target.rsplit('.', 1)`.
2022-04-21 14:07:55 -07:00
Richard Schwab
32871c0d64
Update PyMySQL constants ( #7670 )
2022-04-21 13:56:14 +02:00
Rebecca Chen
2116d2425e
Remove paramiko stubs from pytype_exclude_list. ( #7669 )
...
Pytype can parse these now.
2022-04-20 21:53:54 +01:00
Alex Waygood
a8504f269e
Use _typeshed.OptExcInfo in pydoc and unittest ( #7668 )
2022-04-20 21:00:48 +01:00
Alex Waygood
b093c90a94
Use TypeAlias for type aliases where possible, part II ( #7667 )
2022-04-20 20:02:47 +01:00
Alex Waygood
c653be73b8
Use TypeAlias for argparse type aliases ( #7664 )
2022-04-20 07:32:10 -07:00
Alex Waygood
85594df83b
Use re-exports instead of TypeAliases in email.parser ( #7665 )
2022-04-20 07:31:52 -07:00
Andrey
4a701642f2
Add typing for __iter__ in sqlalchemy.orm.Query ( #7666 )
2022-04-20 10:55:12 +01:00
Alex Waygood
197dac2c0c
Upgrade flake8-pyi to 22.4.1 ( #7662 )
2022-04-18 22:52:44 +01:00
Alex Waygood
3930d8d12a
Make several type aliases private ( #7661 )
2022-04-18 22:19:16 +01:00
Shantanu
67425a89d4
hashlib: update for py311 ( #7652 )
...
Co-authored-by: Akuli <akuviljanen17@gmail.com >
2022-04-18 21:21:19 +03:00
Alex Waygood
617d2aaf57
Fix crash when running mypy master against typeshed master ( #7660 )
2022-04-18 17:20:49 +01:00
Alex Waygood
eafc23ddb8
Add one more # noqa to unblock https://github.com/PyCQA/flake8-pyi/pull/213 ( #7659 )
...
Missed one.
2022-04-18 09:09:40 -07:00
Alex Waygood
54af68c789
Add a few # noqas to unblock PyCQA/flake8-pyi#213 ( #7658 )
2022-04-18 17:57:48 +02:00
Alex Waygood
073f9f416d
Use PEP 585 syntax in collections ( #7657 )
2022-04-18 15:33:50 +01:00
Alex Waygood
97a74bc1aa
Import from collections.abc wherever possible ( #7635 )
2022-04-18 12:50:37 +02:00
Jelle Zijlstra
a17b3afb16
Run pytype test with --print-stderr ( #7656 )
2022-04-18 10:57:48 +03:00
Sebastian Rittau
321359ca31
Add _typeshed.(Opt)ExcInfo ( #7645 )
2022-04-18 00:28:43 +01:00
Jelle Zijlstra
a24b765388
improve type for itertools.zip_longest ( #7655 )
2022-04-17 15:49:05 -07:00
Shantanu
a24ce3f935
dis: update for py311 ( #7649 )
2022-04-17 20:40:39 +03:00
Shantanu
b562089d13
ast: add TryStar in py311 ( #7646 )
...
Co-authored-by: hauntsaninja <>
2022-04-16 22:13:21 -07:00
Shantanu
556fe3e4ef
weakref: use positional-only args ( #7653 )
...
Co-authored-by: hauntsaninja <>
2022-04-16 22:10:39 -07:00
Shantanu
435f758019
sqlite3: add py311 constants ( #7654 )
...
bpo-24139
2022-04-16 22:08:42 -07:00
Alex Waygood
7ce4607dee
Upgrade flake8-pyi to 22.4.0, enable Y026 in .flake8 config ( #7650 )
2022-04-17 01:23:35 +01:00
Shantanu
145a85307a
random: update for py311 (#7651 )
2022-04-17 01:01:36 +01:00
Shantanu
520f807b5f
builtins: default values for int.(to|from)_bytes in py311 ( #7647 )
...
See https://github.com/python/cpython/issues/89318
2022-04-17 00:57:13 +01:00
Shantanu
c93f92d92e
builtins: add BaseExceptionGroup.__class_getitem__ ( #7648 )
2022-04-17 00:48:46 +01:00
Jelle Zijlstra
bedf520d76
typing(_extensions) updates for 3.11 ( #7643 )
2022-04-16 21:42:12 +02:00
Sebastian Rittau
499e74cf2a
Add wsgiref.types (Python 3.11+) ( #7644 )
...
_typeshed.wsgi: Import from wsgiref.types in Python 3.11+
Make types match wsgiref.types
2022-04-16 21:36:31 +02:00
Jelle Zijlstra
b0611bc031
Improve sqlite3 types ( #7641 )
...
Read through the code in CPython and made the types more precise
where possible.
Co-authored-by: Sebastian Rittau <srittau@rittau.biz >
2022-04-16 11:20:11 -07:00
Alex Waygood
2e98c8284c
Move code from decimal.pyi to _decimal.pyi ( #7640 )
...
* Move code from `decimal.pyi` to `_decimal.pyi`
The stub previously did `from decimal import *` in `_decimal.pyi`, but the opposite happens at runtime.
2022-04-16 17:01:13 +01:00
Sebastian Rittau
7a3eb5a481
Use tuple instead of _typing.Tuple in ast ( #7639 )
2022-04-16 16:15:42 +01:00
Alex Waygood
819900fa55
Python 3 stubs: use str instead of typing.Text ( #7638 )
2022-04-16 15:47:00 +01:00
Jelle Zijlstra
d802e65f67
sqlite3: add 3.11 additions ( #7625 )
...
- Blob from python/cpython#30680 (and anticipating that python/cpython#91550 will be merged)
- Aggregate window functions from python/cpython#20903
- Serialize/deserialize from python/cpython#26728
- Limit setting from python/cpython#28463
2022-04-16 16:09:26 +02:00
Sebastian Rittau
182fa6321c
Update gettext translations ( #7636 )
...
* Use a protocol instead of `IO` for `fp` argument.
* Annotate a few missing return types.
* Mark some class constants as final.
Fixes #7628
2022-04-16 07:07:15 -07:00
Alex Waygood
653f2c6ba4
Third-party stubs: import from collections.abc where possible ( #7637 )
2022-04-16 14:52:57 +01:00
Jelle Zijlstra
ee09d9eb19
builtins: Audit bytes arguments ( #7631 )
...
Most use the C buffer protocol, so _typeshed.ReadableBuffer is the right type. A few
check specifically for bytes and bytearray.
2022-04-16 14:16:11 +02:00