Commit Graph

8522 Commits

Author SHA1 Message Date
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
Xuehai Pan
aa15fafc33 stdlib: builtins.type.__base__ can be None (#11040) 2023-11-18 14:03:56 +00:00
Nikita Sobolev
62ccb32b22 Mark deprecated methods as deprecated in wave module (#11001) 2023-11-17 07:31:00 -08:00
Sebastian Rittau
ca8ad657d3 [jsonschema] Bump to 4.20.* (#11036)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-11-17 12:40:08 +00:00
Alex Waygood
4982061ab3 Make itertools.groupby covariant (#11032) 2023-11-17 12:33:14 +01:00
Alex Waygood
4aae235cef Add the nth_combination itertools recipe as a test case (#11031) 2023-11-15 20:14:21 +01:00
Alex Waygood
ac88fdfdbf Bump various test dependencies (#11030) 2023-11-15 15:39:45 +00:00
Alex Waygood
968e2be4d6 Add several itertools recipes to the test_cases directory (#10992) 2023-11-15 16:29:48 +01:00
kasium
6afb72fd4a Improve hdbcli types (#10969) 2023-11-15 15:12:45 +01:00
Matthias Schoettle
dc4594a6e7 [fpdf2] add compatibility with fpdf2 2.7.6 (#10932) 2023-11-15 15:11:59 +01:00
Oleh Prypin
d1925f2bb6 Various improvements to Markdown stubs (#10972) 2023-11-15 14:06:24 +01:00
Avasam
e109588be0 Complete seaborn stubs and mark as strict (#10974) 2023-11-15 12:58:27 +01:00
Anders Kaseorg
643d911f4f markdown: Accept legacy Pattern in inlinePatterns registry (#11027)
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2023-11-14 18:18:09 +00:00
Anders Kaseorg
aabeacfdbd psycopg2: Accept Composable for cursor.mogrify (#11028)
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2023-11-14 06:16:03 -08:00
Jens Tröger
590f89b594 logging: Add a _FilterProtocol type to Filterer.addFilter() filter argument. (#11018) 2023-11-14 11:14:19 +02:00
github-actions[bot]
c88e099e80 [stubsabot] Mark tree-sitter as obsolete since 0.20.3 (#10681) 2023-11-14 09:09:48 +01:00