Commit Graph

8514 Commits

Author SHA1 Message Date
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
Avasam
7754c63f14 Bump PyScreeze to 0.1.30 (#11025) 2023-11-13 10:37:36 +00:00
Avasam
df623b85d8 Bump pyinstaller to 6.2.* (#11023) 2023-11-12 22:46:10 +00:00
Avasam
1582e4833a Update PyInstaller.building.api.EXE.__init__ (#11024) 2023-11-12 18:59:34 +00:00
Serious-senpai
676446569d Provide more precise type hints for itertools.permutations (#11019) 2023-11-11 14:23:11 +00:00
Alex Waygood
571cc6d77a Pin PyScreeze more tightly (#11017)
To stop the "stubtest failed" bot opening a new issue every night until we have a chance to look at the stubtest failures (stubsabot will just open a PR instead)

Closes #11016
2023-11-11 00:44:49 +00:00
Alex Waygood
eebc28740e Revert "Use Callable[..., Any] instead of Callable[..., object] in unittest" (#8779) 2023-11-10 19:53:33 +01:00
Akuli
cad0c04ec0 tkinter: Require passing in a callback function to .after() (#11013) 2023-11-10 20:18:25 +02:00
Rob Percival
cc0b41a994 Fix type hints for unittest.util.unorderable_list_difference() (#11012)
Fix type hints for unorderable_list_difference()

It claimed that the arguments were `Sequence` types (immutable), but the function removes elements from them, so they must be `MutableSequence` types. Specifically, it calls `pop()` on the first argument and `remove()` on the second argument.

See the function implementation for details:
0b06d2482d/Lib/unittest/util.py (L98-L113)
2023-11-10 17:53:03 +00:00