Commit Graph

8564 Commits

Author SHA1 Message Date
Stephen Morton
fd558f8acf importlib.abc.Loader moved to importlib._abc.Loader in 3.10 (#11142) 2023-12-11 14:48:58 +01:00
github-actions[bot]
1087d87379 [stubsabot] Bump ujson to 5.9.* (#11143) 2023-12-11 05:47:11 +01:00
Stephen Morton
695d67cd7b Add deprecation classes in importlib.metadata (#11118) 2023-12-10 21:06:22 +01:00
Ali Hamdan
be55326873 Replace overload hack in operator.itemgetter with PEP 646 Unpack (#11136)
Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-12-10 16:25:48 +00:00
Ali Hamdan
6ae413f2c0 seaborn: complete the distributions module (#11131) 2023-12-10 07:18:59 -08:00
Ali Hamdan
88193cd7df seaborn: mark simple deprecations (#11130) 2023-12-10 12:04:19 +01:00
Stephen Morton
d373050dbb Fix importlib.abc.Finder base class, method availability (#11134) 2023-12-10 12:01:44 +01:00
David Salvisberg
3348ca5b10 fanstatic: Use Unpack in fanstatic.injector.Injector (#11139) 2023-12-10 11:45:35 +01:00
David Salvisberg
df9a51306a gevent: Use TypeVarTuple instead of old ParamSpec workaround. (#11129) 2023-12-09 20:40:09 -08:00
Paul Ganssle
336c062489 Remove write modes from importlib.resources.abc.Traversable (#11124) 2023-12-09 20:38:40 -08:00
Stephen Morton
45b1db9f8e use _LoopBoundMixin in asyncio when appropriate (#11127)
related to https://github.com/python/typeshed/issues/3968
2023-12-09 20:36:34 -08:00
Stephen Morton
6b9f82d2e1 make pointer types in ctypes.wintypes subclasses instead of aliases (#11126)
related to https://github.com/python/typeshed/issues/3968
2023-12-09 20:34:22 -08:00
Ali Hamdan
9c5479ffda stdlib: Use PEP646 tuple unpack for precise os.execl(p)e typing (#11133) 2023-12-09 20:34:00 -08:00
Akuli
51ec2f0900 tkinter: Use a TypeVarTuple in .after() and .after_idle() methods (#11014) 2023-12-08 23:00:13 +00:00
Alex Waygood
a08d2d5d66 Use PEP-646 in stubs for asyncio (#11015) 2023-12-08 22:59:42 +00:00
Alex Waygood
250fcd3067 Bump pytype test dependency to 2023.12.8 (#11125) 2023-12-08 14:11:51 -08:00
Alex Waygood
ad5ec921e0 Bump various test dependencies (#11120) 2023-12-08 11:01:36 +00:00
Alex Waygood
bb1f70ad08 Fix stubtest now that Python 3.12.1 is out (#11121) 2023-12-08 10:59:44 +00:00
Stephen Morton
acfdebfeb8 fix xxlimited inheritance (#11119)
related to https://github.com/python/typeshed/issues/3968

Co-authored-by: Stephen Morton <git@tungol.org>
2023-12-07 12:04:41 -08:00
Avasam
e76e6811e1 Fix pywin32's PyCBitmap.GetBitmapBits method (#11108) 2023-12-07 05:40:00 -05:00
Stephen Morton
e915cb28be email.feedparser.BytesFeedParser is a subclass of FeedParser (#11110) 2023-12-07 11:28:26 +01:00
tungol
1b6691067a fix superclass for UnixDatagramServer and UnixStreamServer (#11115) 2023-12-07 08:05:46 +01:00
Avasam
c8a81997ab Bump pyright to 1.1.339 (#11084) 2023-12-06 22:40:06 +00:00
Avasam
4246c54a12 psycopg2: improve cursor_factory params (#11085) 2023-12-06 14:29:23 -08:00
David Salvisberg
aded4aa390 Add stubs for gevent (#10527) 2023-12-06 20:32:48 +01:00
Alex Waygood
d8c174d26a Remove stubs for stdlib-list (#11111) 2023-12-06 08:41:45 -08:00
tungol
db3024d2e7 Use builtin TimeoutError in asyncio and concurrent.futures (#11109)
related to https://github.com/python/typeshed/issues/3968

Co-authored-by: Stephen Morton <git@tungol.org>
2023-12-06 00:22:26 -08:00
Mehdi GMIRA
64773f398d fix(psycopg2): fix copy_expert signature (#11099) 2023-12-06 08:11:41 +01:00
Alex Waygood
9eb099ed6b Stubtest fixes for the latest patch release of py311 (#11107) 2023-12-06 00:55:46 +00:00
tungol
fd7ff19577 Use StrEnum as base class, when available (#11100) 2023-12-05 13:27:10 +01:00
Avasam
b5511ca648 Go back to default for useLibraryCodeForTypes & delete removed vscode-python configs. (#11101) 2023-12-05 13:24:18 +01:00
Avasam
23b0291176 openpyxl: Type styleable descriptors (#11103) 2023-12-05 10:41:41 +01:00
Avasam
5521da8e92 Openpyxl: Various improvements (#11092) 2023-12-04 21:54:45 +01:00
Ali Hamdan
0f7241844e seaborn: complete and fix axisgrid module (#11096) 2023-12-04 12:30:26 +01:00
Simon Lanzmich
fe48f37bf7 stdlib: Annotate type.__prepare__ to return a mutable object (#11093)
During class creation, the namespace returned by `__prepare__` is
populated when the class body is executed. Therefore, it must be
mutable.
2023-12-03 22:46:33 +00:00
Alex Waygood
77ff987b57 Add some missing attribute annotations to trace.pyi (#11091) 2023-12-03 22:14:15 +00:00
github-actions[bot]
d067f205e6 [stubsabot] Bump flake8-bugbear to 23.12.2 (#11097)
Release: https://pypi.org/pypi/flake8-bugbear/23.12.2
Homepage: https://github.com/PyCQA/flake8-bugbear
Repository: https://github.com/PyCQA/flake8-bugbear
Changelog: https://github.com/PyCQA/flake8-bugbear#change-log
Diff: https://github.com/PyCQA/flake8-bugbear/compare/23.11.28...23.12.2

Stubsabot analysis of the diff between the two releases:
 - 2 public Python files have been added: `scripts/flake8_py_version_check.py`, `tests/b018_nested.py`.
 - 0 files included in typeshed's stubs have been deleted.
 - 1 file included in typeshed's stubs has been modified or renamed: `bugbear.py`.
 - Total lines of Python code added: 180.
 - Total lines of Python code deleted: 29.

If stubtest fails for this PR:
- Leave this PR open (as a reminder, and to prevent stubsabot from opening another PR)
- Fix stubtest failures in another PR, then close this PR

Note that you will need to close and re-open the PR in order to trigger CI

Co-authored-by: stubsabot <>
2023-12-03 00:16:12 +00:00
Avasam
5f12eebda4 openpyxl: type to_tree methods (#10967) 2023-12-01 13:13:16 +01:00
Sebastian Rittau
3a036b64fc logging: Remove hack obsoleted by PEP 655 (#11078) 2023-11-30 21:48:54 +00:00
Rayan Sóstenes
9fbf2e1c0c Fix: functools.reduce does not accept keyword arguments (#11090) 2023-11-30 13:44:52 +00:00
Sebastian Rittau
d4bd6d96a0 Bump pytype to 2023.11.29 (#11089) 2023-11-30 08:59:51 +01:00
github-actions[bot]
78052791df [stubsabot] Bump flake8-bugbear to 23.11.28 (#11088)
Release: https://pypi.org/pypi/flake8-bugbear/23.11.28
Homepage: https://github.com/PyCQA/flake8-bugbear
Repository: https://github.com/PyCQA/flake8-bugbear
Changelog: https://github.com/PyCQA/flake8-bugbear#change-log
Diff: https://github.com/PyCQA/flake8-bugbear/compare/23.11.26...23.11.28

Stubsabot analysis of the diff between the two releases:
 - 0 public Python files have been added.
 - 0 files included in typeshed's stubs have been deleted.
 - 1 file included in typeshed's stubs has been modified or renamed: `bugbear.py`.
 - Total lines of Python code added: 50.
 - Total lines of Python code deleted: 3.
2023-11-30 00:20:58 +00:00
Alex Waygood
0b36e65877 Remove redundant sys.version_info condition (#11087)
We're already inside an `if sys.version_info >= (3, 12)` block here; no need to check if `sys.version_info >= (3, 10)`
2023-11-29 19:10:48 +00:00
Alex Waygood
ef346aba0d Fixes to typing and typing_extensions stubs (#11086) 2023-11-29 19:00:58 +00:00
Paul J. Dorn
1d3a18c6da asyncio: create_subprocess_exec is the same as create_subprocess_shell, except where it isn't (#11076)
asyncio.subprocess: duplicate _shell args to _exec

Fixes: 38dfb57adf

Expanding the keywords used True arguments for shell in both _exec and _shell. The _exec one is for shell=False. With the text argument, its the other way around: both demand Falsy here, so match those lines.
2023-11-29 16:11:03 +00:00
Avasam
d5685789cc Bump boltons to 23.1.* (#11083) 2023-11-29 16:05:44 +00:00
Avasam
4687faab8e Use ConvertibleToInt/ConvertibleToFloat in many third-party stubs (#11022)
Note: this may make the latest version of certain stubs packages incompatible with older versions of mypy and pyright.
2023-11-29 11:23:00 +00:00
Alex Waygood
09668963a1 Make itertools.starmap covariant (#11037) 2023-11-29 11:10:26 +00:00
Alex Waygood
e7c57b5a6d Bump setuptools to 69.0.* (#11069)
Co-authored-by: Avasam <samuel.06@hotmail.com>
2023-11-28 22:23:29 +00:00
Jit Kanetkar
e2a393897c shutil.pyi: update chown stubs to support file descriptor (#11082)
Per the python docs, `os.chown`, which is directly called by `shutil.chown`, supports "specifying a file descriptor". Currently, this below code works but fails in mypy:

```python
import shutil
import tempfile

with tempfile.TemporaryFile() as file:
    shutil.chown(file.fileno(), group="my_group")
```
2023-11-28 22:22:33 +00:00