Alex Waygood
edc0ecd857
Remove Python 3.6 branches from typeshed ( #8269 )
2022-07-11 10:55:17 +02:00
Alex Waygood
a2e8346d9a
Improve multiprocessing stubs ( #8202 )
...
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com >
2022-07-01 23:50:39 +05:30
Alex Waygood
ca44b893e3
multiprocessing: audit callback annotations (#8178 )
2022-06-26 13:15:26 +01:00
Alex Waygood
01d5e28ff7
Fix miscellaneous invalid TypeVar usages ( #8074 )
2022-06-14 08:48:41 -07:00
Alex Waygood
591593c85f
Simplify __all__ for modules beginning with 'm' to 't' ( #8028 )
2022-06-07 20:14:15 +01:00
Alex Waygood
d511312e21
multiprocessing.managers: fix TypeVar usage (#7938 )
...
#7928
`dict()` and `list()` just return empty dictionaries and lists (respectively) if no arguments are supplied:
```python
>>> from multiprocessing.managers import SyncManager
>>> with SyncManager() as s:
... print(s.dict())
...
{}
```
2022-05-26 07:18:43 -07:00
Jelle Zijlstra
573539ba2a
multiprocessing: add shutdown_timeout param to BaseManager ( #7692 )
...
python/cpython#32112
2022-04-25 22:12:56 -06:00
Alex Waygood
b093c90a94
Use TypeAlias for type aliases where possible, part II ( #7667 )
2022-04-20 20:02:47 +01:00
Alex Waygood
97a74bc1aa
Import from collections.abc wherever possible ( #7635 )
2022-04-18 12:50:37 +02:00
Alex Waygood
740193a8fc
Use TypeAlias where possible for type aliases ( #7630 )
2022-04-15 18:01:00 -07:00
Alex Waygood
da3e69d093
stdlib: Improve a bunch of __(a)exit__ methods ( #7571 )
2022-04-01 08:05:25 +02:00
Rebecca Chen
f39f20c4dd
Fix the type signature of multiprocessing.managers.BaseManager.__exit__ ( #7529 )
...
All parameters should accept None.
2022-03-22 07:32:15 +01:00
Jelle Zijlstra
ba475a04c3
multiprocessing: args can be any Iterable ( #7500 )
...
https://github.com/python/cpython/blob/main/Lib/multiprocessing/process.py#L91
2022-03-17 01:44:25 +00:00
Alex Waygood
3ab250eec8
Use PEP 604 syntax wherever possible ( #7493 )
2022-03-16 16:01:33 +01:00
Alex Waygood
f4ae363b56
stdlib: correct many pos-or-kw arg names in dunder methods ( #7451 )
2022-03-07 16:40:03 +01:00
Alex Waygood
947724a5cb
stdlib: Add several missing @abstractmethod decorators ( #7443 )
2022-03-06 16:41:13 -08:00
Alex Waygood
cda3d9cf72
Use latest stubtest in CI ( #7438 )
2022-03-04 15:19:29 +01:00
Alex Waygood
a0b41959ec
stdlib: fix many attributes which are read-only at runtime but read-write in the stub ( #7395 )
2022-02-27 16:23:09 -08:00
Alex Waygood
d2ddda00cf
Fix various __all__-related typos and omissions ( #7378 )
2022-02-25 15:10:00 +02:00
Rebecca Chen
da093c395c
Allow multiprocessing.pool.ThreadPool.__exit__ to accept None ( #7376 )
2022-02-23 19:21:25 -08:00
Alex Waygood
240628c4dd
Add missing objects to plistlib, and improve __all__ in asyncio.tasks, http.server, & multiprocessing.__init__ ( #7363 )
2022-02-22 16:39:34 -08:00
Alex Waygood
070bbb4fb9
Add multiprocessing.reduction submodule ( #7361 )
2022-02-22 16:36:26 -08:00
Alex Waygood
6fc4c14181
Add missing objects in codecs, configparser, and multiprocessing.dummy ( #7360 )
2022-02-22 18:25:27 +01:00
Alex Waygood
07de01f29e
Add __all__ to modules beginning with 'm' ( #7330 )
2022-02-20 14:08:07 -08:00
Alex Waygood
fbc279e3f5
stdlib: Add many missing dunder overrides ( #7231 )
2022-02-16 06:25:47 -08:00
Nikita Sobolev
5014f9f50c
Improve __reduce__ signature accross stdlib ( #7182 )
2022-02-13 12:24:27 +01:00
Shantanu
b88a6f19cd
Upgrade black version ( #7089 )
2022-01-30 16:27:06 -08:00
Alex Waygood
96c9abb058
Always use _typeshed.Self, where applicable ( #6880 )
...
* Always use `_typeshed.Self`, where applicable
* Revert changes to `google-cloud-ndb` (ambiguous)
* Remove empty line added by script
* Revert changes to `stubs/python-dateutil/dateutil/relativedelta.pyi`
* Manually add a few more that the script missed
* Improve `filelock` annotation
Source code here: 79ec7b2826/src/filelock/_api.py (L207)
* Improve `opentracing/scope` annotation
Source code here: 3e1d357a34/opentracing/scope.py (L71)
* Improve `redis/client` stub
Source code here: 15f315a496/redis/client.py (L1217)
* Improve `redis/lock` annotation
Source code here: 15f315a496/redis/lock.py (L155)
* Improve `requests/models` annotation
Source code here: d718e75383/requests/models.py (L653)
2022-01-09 19:16:19 -08:00
Alex Waygood
4e046163b5
Delete many redundant method redefinitions ( #6877 )
2022-01-09 11:21:03 -08:00
Alex Waygood
a40d79a4e6
Use lowercase type everywhere ( #6853 )
2022-01-08 16:09:29 +01:00
Alex Waygood
2268955701
Remove several unused TypeVars ( #6829 )
2022-01-05 17:58:03 +02:00
Nikita Sobolev
4c61bdbccb
multiprocessing.pool: Use Literal and add __all__ ( #6815 )
2022-01-04 18:20:06 +02:00
Alex Waygood
505ea72641
Never explicitly inherit from object in Python 3-only stubs ( #6777 )
2022-01-02 07:24:48 +01:00
Akuli
c3cc5e47c0
delete very old autogenerated comments ( #6755 )
2021-12-30 17:16:06 +01:00
Alex Waygood
8d5d2520ac
Use PEP 585 syntax wherever possible ( #6717 )
2021-12-28 11:31:43 +01:00
Alex Waygood
a9cfd23fc3
Further reduce use of deprecated contextlib aliases ( #6370 )
2021-11-23 15:25:39 -08:00
luzpaz
b95b729b9e
Fix typos ( #6263 )
...
Found via `codespell -q 3 -L alo,asend,ba,nams,spawnve`
2021-11-08 18:23:15 -08:00
Akuli
994b69ef8f
Use lowercase tuple where possible ( #6170 )
2021-10-14 17:18:19 -07:00
Akuli
75ca712f3c
check_new_syntax.py: check nested annotations ( #6167 )
2021-10-14 00:28:38 +03:00
Akuli
e72a4034bf
Cleanup: use lower-case list and dict, add a test ( #6161 )
2021-10-13 22:59:27 +03:00
Jake Bailey
4707e1d763
Fix use of unexported Pool type in multiprocessing.pool ( #6111 )
2021-10-04 17:20:24 -07:00
Rebecca Chen
d74a5a9ef8
Add undocumented attribute multiprocessing.process.BaseProcess._identity ( #6041 )
...
A user filed an issue against pytype about this attribute being missing:
https://github.com/google/pytype/issues/1010 . I determined its type from
the source code:
https://github.com/python/cpython/blob/3.9/Lib/multiprocessing/process.py .
2021-09-17 13:14:07 -07:00
Shantanu
ba998cd5f9
multiprocessing.pool: fix __init__ methods ( #5833 )
...
Co-authored-by: hauntsaninja <>
2021-08-28 12:04:08 -07:00
Oleg Höfling
64f481189f
drop ellipsis assignments from module vars, classvars and instance attrs ( #5914 )
...
Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com >
2021-08-11 19:26:58 +02:00
Akuli
9af9cca7f3
lowercase list and dict in the rest of stdlib ( #5892 )
2021-08-09 00:13:08 +02: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
MapleCCC
65b3a4b09d
Add type annotation for multiprocessing.SimpleQueue.close() method ( #5814 )
2021-07-28 09:43:27 -07:00
Anton Grübel
d68701c0ec
Use _typeshed.Self with __enter__ ( #5723 )
...
Co-authored-by: Sebastian Rittau <srittau@rittau.biz >
Co-authored-by: Akuli <akuviljanen17@gmail.com >
2021-07-04 21:10:01 +03:00
Dominic Davis-Foster
58559e56b3
Use _typeshed.Self where __enter__ returns self ( #5698 )
2021-06-27 22:58:58 +03:00