Commit Graph

8546 Commits

Author SHA1 Message Date
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
Akuli
99563a2e6e Use @deprecated in tkinter.Variable tracing methods (#11011) 2023-11-10 19:38:20 +02:00
Alex Waygood
3f887d5852 Bump mypy to 1.7.0 (#11010) 2023-11-10 15:13:42 +00:00
Jelle Zijlstra
0c7bdffa90 third-party: make some protocol params pos-only (#11006) 2023-11-10 07:40:10 +01:00
Jelle Zijlstra
4deef7550f stdlib: Fix more signatures with unrepresentable defaults (#11007) 2023-11-09 18:20:09 -08:00
Avasam
b8932899ea Complete Flask-Migrate and mark as Strict (#10971) 2023-11-09 17:48:57 +01:00
Jelle Zijlstra
d9311f946e stdlib: fix signatures for some functions with unrepresentable defaults (#11000)
Found with python/mypy#16433

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-11-09 08:14:36 -08:00
PokkaKiyo
7f9b3ea6c3 Support for pexpect.spawn(..., logfile=sys.stdout) (#10976) 2023-11-09 10:42:29 +01:00
Jonathan Slenders
7ef466e88d Add types for pygments.lex. (#10998) 2023-11-09 10:40:24 +01:00
Jakob Stadler
d6403b14aa stdlib: Fix os.startfile (#10996)
Fixes #10991
2023-11-08 15:44:14 -08:00
Jelle Zijlstra
17f8a82376 ast: mark ast.Num etc. as deprecated (#10994) 2023-11-08 19:40:22 +01:00
Alex Waygood
516f665505 Bump flake8-pyi to 23.11.0 (#10997) 2023-11-08 16:01:24 +00:00
Jelle Zijlstra
b36f3c5229 asyncio: remove overly specific protocols (#10984)
The _warn parameter to these methods is just there to work around
some finalization issues and should never be used by users. In
addition, these protocols are out of date (the "stacklevel" argument
is not used by current CPython main). I don't think we gain anything
by trying to maintain these protocol definitions.
2023-11-07 19:26:25 -08:00
github-actions[bot]
4020d25686 [stubsabot] Bump braintree to 4.24.* (#10993)
Release: https://pypi.org/pypi/braintree/4.24.0
Homepage: https://developer.paypal.com/braintree/docs/reference/overview
Repository: https://github.com/braintree/braintree_python
Diff: https://github.com/braintree/braintree_python/compare/4.23.0...4.24.0

Stubsabot analysis of the diff between the two releases:
 - 4 public Python files have been added: `braintree/meta_checkout_card.py`, `braintree/meta_checkout_token.py`, `tests/unit/test_meta_checkout_card.py`, `tests/unit/test_meta_checkout_token.py`.
 - 0 files included in typeshed's stubs have been deleted.
 - 7 files included in typeshed's stubs have been modified or renamed: `braintree/payment_instrument_type.py`, `braintree/payment_method.py`, `braintree/transaction.py`, `braintree/us_bank_account_verification.py`, `braintree/version.py`, `braintree/webhook_notification.py`, `braintree/webhook_testing_gateway.py`.
 - Total lines of Python code added: 738.
 - Total lines of Python code deleted: 49.
2023-11-08 00:16:51 +00:00
Thomas M Kehrenberg
359d4c095d Fix return type of dbm.whichdb (#10989)
It is `None` if the given file doesn't exist or isn't a database.
2023-11-07 12:49:39 +01:00
Nikita Sobolev
3f54f7e3de Bump ruff (#10988) 2023-11-07 10:48:08 +00:00
Alex Lowe
820be9bfe9 Add pyxdg stubs (#10163)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-11-06 16:57:09 -08:00
Jelle Zijlstra
3229b36644 stdlib: More pos-only parameters to Protocols (#10987) 2023-11-06 23:45:12 +01:00
Jelle Zijlstra
5030b7419b stdlib: Use pos-only parameters for many Protocols (#10985) 2023-11-06 18:09:04 +01:00