Commit Graph

8887 Commits

Author SHA1 Message Date
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
Sebastian Rittau
9d6d79c83c typing-sig is no more, it's bereft of life, it's an ex-list (#11081)
It's not pining for the fjords anymore
2023-11-28 22:09:13 +00:00
Alex Waygood
21a0104f0d maintainers += Avasam (#11080) 2023-11-28 17:03:28 -05:00
Alex Waygood
9bbfa3362a Add importlib.machinery.NamespaceLoader (#11074) 2023-11-28 20:02:24 +00:00
Anthony Sottile
53592e421a set root for logging dict config to be non-None (#11077) 2023-11-28 20:21:19 +01:00
github-actions[bot]
5cd7892f36 [stubsabot] Bump flake8-bugbear to 23.11.26 (#11075)
Release: https://pypi.org/pypi/flake8-bugbear/23.11.26
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.9.16...23.11.26

Stubsabot analysis of the diff between the two releases:
 - 1 public Python file has been added: `tests/b035.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: 175.
 - Total lines of Python code deleted: 61.

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-11-28 00:26:27 +00:00
Emanuele Giaquinta
b92221eb97 psycopg2: fix range annotations (#11071) 2023-11-27 08:41:09 +01:00
dispread
d27426488e Added paramiko3.2 PKey and PublicBlob methods (#11067)
Addded missing paramiko methods from https://docs.paramiko.org/en/latest/api/keys.html#paramiko.pkey.PKey
2023-11-24 17:55:21 +00:00
Serious-senpai
b1d5f2f8d5 Provide precise type hints for combinations_with_replacement (#11068) 2023-11-24 17:46:39 +00:00
Alex Waygood
81633e2709 Bump mypy and pytype test dependencies (#11065) 2023-11-23 20:48:11 +00:00
Alex Waygood
01432805d9 Fix typos in docs and comments (#11064) 2023-11-23 14:55:58 +00:00
Sebastian Rittau
30f7267b5d Bump pygments to 2.17 (#11051)
* Add some previously missing lexers.
* Improve lexer type annotations.
2023-11-23 14:55:38 +00:00
Alex Waygood
1d2fe59e88 Third-party stubs: remove unused type: ignores (#11063) 2023-11-23 13:35:45 +00:00
Alex Waygood
b04e50d522 redis: remove unused type: ignores (#11062) 2023-11-23 14:02:25 +01:00
Alex Waygood
10febc4fe0 stdlib: remove unused type: ignore comments (#11061) 2023-11-23 14:00:07 +01:00
Jelle Zijlstra
c2c8d7cf5d stdlib: Apply some simple deprecations (#11044) 2023-11-23 09:03:01 +01:00
Jelle Zijlstra
42875bcbf1 ibm-db: Add SQL_ATTR_TXN_ISOLATION (#11060) 2023-11-23 09:00:33 +01:00
Alex Waygood
a40e683784 Teach stubsabot to be smarter about the required locations of py.typed files (#11053) 2023-11-22 22:49:58 +00:00
Allison Karlitskaya
53d5ee5a78 stdlib: HTTPSConnection(port=) is int|None (#11058)
Fix an apparent typo in the type of this field.

Closes #11057
2023-11-22 17:20:33 +00:00
Nikita Sobolev
06d0151b25 Enable redundant-self mypy error code (#11056) 2023-11-22 10:13:17 +00:00
Nikita Sobolev
d232def6b2 Use consistent mypy output spacing (#11055) 2023-11-22 09:58:13 +00:00
David Salvisberg
e6c3219586 Add stubs for fanstatic (#9931) 2023-11-22 00:13:45 +01:00
Alex Waygood
a9fc14a811 third-party stubs: Add several missing __del__ methods (#11054) 2023-11-21 19:07:30 +00:00
Ali Hamdan
aef6e229fe seaborn: fix and complete seaborn.regression (#11043) 2023-11-21 17:51:25 +01:00
Alex Waygood
519a7dfcb8 Improve a few dataclass reprs in stubsabot (#11050) 2023-11-21 14:20:16 +00:00
Jelle Zijlstra
5fd2e9bf61 CONTRIBUTING: Add @deprecated, other updates (#11005)
Fixes #11004.

I started out just documenting conventions with `@deprecated`, but
found some other things in need of updates.

- PEP 585 and 612 are now fully supported
- Add several other PEPs that we fully support
- Use updated links to PEPs
- Split off a few sections from the long "Conventions" section
- PEP 688 was accepted
2023-11-18 12:55:18 -08:00
Alex Waygood
83964a4dc5 stdlib: add many missing __del__ methods (#11042) 2023-11-18 11:32:12 -08:00
Alex Waygood
e21a2c70b7 Bump various test dependencies (#11041) 2023-11-18 15:12:06 +00:00