Commit Graph
8542 Commits
Author SHA1 Message Date
Ali HamdanandGitHub aef6e229fe seaborn: fix and complete seaborn.regression (#11043) 2023-11-21 17:51:25 +01:00
Alex WaygoodandGitHub 519a7dfcb8 Improve a few dataclass reprs in stubsabot (#11050) 2023-11-21 14:20:16 +00:00
Jelle ZijlstraandGitHub 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 WaygoodandGitHub 83964a4dc5 stdlib: add many missing __del__ methods (#11042) 2023-11-18 11:32:12 -08:00
Alex WaygoodandGitHub e21a2c70b7 Bump various test dependencies (#11041) 2023-11-18 15:12:06 +00:00
Xuehai PanandGitHub aa15fafc33 stdlib: builtins.type.__base__ can be None (#11040) 2023-11-18 14:03:56 +00:00
Nikita SobolevandGitHub 62ccb32b22 Mark deprecated methods as deprecated in wave module (#11001) 2023-11-17 07:31:00 -08:00
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 WaygoodandGitHub 4982061ab3 Make itertools.groupby covariant (#11032) 2023-11-17 12:33:14 +01:00
Alex WaygoodandGitHub 4aae235cef Add the nth_combination itertools recipe as a test case (#11031) 2023-11-15 20:14:21 +01:00
Alex WaygoodandGitHub ac88fdfdbf Bump various test dependencies (#11030) 2023-11-15 15:39:45 +00:00
Alex WaygoodandGitHub 968e2be4d6 Add several itertools recipes to the test_cases directory (#10992) 2023-11-15 16:29:48 +01:00
kasiumandGitHub 6afb72fd4a Improve hdbcli types (#10969) 2023-11-15 15:12:45 +01:00
Matthias SchoettleandGitHub dc4594a6e7 [fpdf2] add compatibility with fpdf2 2.7.6 (#10932) 2023-11-15 15:11:59 +01:00
Oleh PrypinandGitHub d1925f2bb6 Various improvements to Markdown stubs (#10972) 2023-11-15 14:06:24 +01:00
AvasamandGitHub e109588be0 Complete seaborn stubs and mark as strict (#10974) 2023-11-15 12:58:27 +01:00
Anders KaseorgandGitHub 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 KaseorgandGitHub 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ögerandGitHub 590f89b594 logging: Add a _FilterProtocol type to Filterer.addFilter() filter argument. (#11018) 2023-11-14 11:14:19 +02:00
github-actions[bot]andGitHub c88e099e80 [stubsabot] Mark tree-sitter as obsolete since 0.20.3 (#10681) 2023-11-14 09:09:48 +01:00
AvasamandGitHub 7754c63f14 Bump PyScreeze to 0.1.30 (#11025) 2023-11-13 10:37:36 +00:00
AvasamandGitHub df623b85d8 Bump pyinstaller to 6.2.* (#11023) 2023-11-12 22:46:10 +00:00
AvasamandGitHub 1582e4833a Update PyInstaller.building.api.EXE.__init__ (#11024) 2023-11-12 18:59:34 +00:00
Serious-senpaiandGitHub 676446569d Provide more precise type hints for itertools.permutations (#11019) 2023-11-11 14:23:11 +00:00
Alex WaygoodandGitHub 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 WaygoodandGitHub eebc28740e Revert "Use Callable[..., Any] instead of Callable[..., object] in unittest" (#8779) 2023-11-10 19:53:33 +01:00
AkuliandGitHub cad0c04ec0 tkinter: Require passing in a callback function to .after() (#11013) 2023-11-10 20:18:25 +02:00
Rob PercivalandGitHub 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:
https://github.com/python/cpython/blame/0b06d2482d77e02c5d40e221f6046c9c355458b2/Lib/unittest/util.py#L98-L113
2023-11-10 17:53:03 +00:00
AkuliandGitHub 99563a2e6e Use @deprecated in tkinter.Variable tracing methods (#11011) 2023-11-10 19:38:20 +02:00
Alex WaygoodandGitHub 3f887d5852 Bump mypy to 1.7.0 (#11010) 2023-11-10 15:13:42 +00:00
Jelle ZijlstraandGitHub 0c7bdffa90 third-party: make some protocol params pos-only (#11006) 2023-11-10 07:40:10 +01:00
Jelle ZijlstraandGitHub 4deef7550f stdlib: Fix more signatures with unrepresentable defaults (#11007) 2023-11-09 18:20:09 -08:00
AvasamandGitHub b8932899ea Complete Flask-Migrate and mark as Strict (#10971) 2023-11-09 17:48:57 +01:00
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
PokkaKiyoandGitHub 7f9b3ea6c3 Support for pexpect.spawn(..., logfile=sys.stdout) (#10976) 2023-11-09 10:42:29 +01:00
Jonathan SlendersandGitHub 7ef466e88d Add types for pygments.lex. (#10998) 2023-11-09 10:40:24 +01:00
Jakob StadlerandGitHub d6403b14aa stdlib: Fix os.startfile (#10996)
Fixes #10991
2023-11-08 15:44:14 -08:00
Jelle ZijlstraandGitHub 17f8a82376 ast: mark ast.Num etc. as deprecated (#10994) 2023-11-08 19:40:22 +01:00
Alex WaygoodandGitHub 516f665505 Bump flake8-pyi to 23.11.0 (#10997) 2023-11-08 16:01:24 +00:00
Jelle ZijlstraandGitHub 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]andGitHub 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 KehrenbergandGitHub 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 SobolevandGitHub 3f54f7e3de Bump ruff (#10988) 2023-11-07 10:48:08 +00:00
820be9bfe9 Add pyxdg stubs (#10163)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-11-06 16:57:09 -08:00
Jelle ZijlstraandGitHub 3229b36644 stdlib: More pos-only parameters to Protocols (#10987) 2023-11-06 23:45:12 +01:00
Jelle ZijlstraandGitHub 5030b7419b stdlib: Use pos-only parameters for many Protocols (#10985) 2023-11-06 18:09:04 +01:00
Sebastian RittauandGitHub a5c1a4cd3f Introduce _typeshed.SupportsFlush (#10983) 2023-11-06 15:31:02 +01:00
Sebastian RittauandGitHub 6c5d1d3ae8 [seaborn] Add upstream_repository field (#10982) 2023-11-06 13:44:22 +00:00
Andrey RakhmatullinandGitHub 7b18a0be91 Fix type hint for xml.sax.saxutils.XMLGenerator.__init__(). (#10979)
The `out` parameter accepts objects with `write(__o: bytes)`, not `write(__o: str)` methods.
2023-11-06 14:31:50 +01:00
Alex WaygoodandGitHub 8023ba764a Remove redundant inheritances from Generic and various typing protocols (#10981) 2023-11-06 14:00:25 +01:00