Commit Graph

8468 Commits

Author SHA1 Message Date
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:
https://github.com/python/cpython/blame/0b06d2482d77e02c5d40e221f6046c9c355458b2/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
Sebastian Rittau a5c1a4cd3f Introduce _typeshed.SupportsFlush (#10983) 2023-11-06 15:31:02 +01:00
Sebastian Rittau 6c5d1d3ae8 [seaborn] Add upstream_repository field (#10982) 2023-11-06 13:44:22 +00:00
Andrey Rakhmatullin 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 Waygood 8023ba764a Remove redundant inheritances from Generic and various typing protocols (#10981) 2023-11-06 14:00:25 +01:00
Tin Tvrtković c8073493fc http.HTTPConnection.putheader tweak (#10978) 2023-11-05 15:38:41 -08:00
github-actions[bot] 1c51689b26 [stubsabot] Bump flake8-builtins to 2.2.* (#10975)
Release: https://pypi.org/pypi/flake8-builtins/2.2.0
Homepage: https://github.com/gforcada/flake8-builtins
Repository: https://github.com/gforcada/flake8-builtins
Changelog: https://github.com/gforcada/flake8-builtins/blob/main/CHANGES.rst
Diff: https://github.com/gforcada/flake8-builtins/compare/2.1.0...2.2.0

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: `flake8_builtins.py`.
 - Total lines of Python code added: 34.
 - Total lines of Python code deleted: 86.

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-03 17:43:55 -07:00
Avasam 3a56e0034c xml.etree: Fix tag param in __init__ (#10968) 2023-11-03 14:50:49 +01:00
Oleh Prypin 19650767da Various improvements to Markdown stubs (#10963) 2023-11-02 18:24:17 +01:00
SEONGROK KIM 5122e84f49 Add retry_on_error params for redis stub (#10961) 2023-11-02 17:20:20 +00:00
Avasam 6a2528e6dc openpyxl TypeGuards and comparison dunders (#10962) 2023-11-02 18:17:47 +01:00
Serious-senpai fa088948aa Fix incorrect typehint for callbacks in multiprocessing.Pool (#10949) 2023-11-02 16:59:29 +01:00
github-actions[bot] b3fa05ae31 [stubsabot] Mark stripe as obsolete since 7.1.0 (#8490) 2023-11-02 15:51:10 +01:00
Avasam 105bb0a060 openpyxl: Type usages of PIL and zipfile (#10706) 2023-11-02 15:28:41 +01:00
Nikita Sobolev 18cd196109 Bump pyright to 1.1.334 (#10959)
https://github.com/microsoft/pyright/releases/tag/1.1.334
2023-10-31 23:21:52 -07:00
Spencer Brown 3c872ca8fd Add types to some tkinter.Text methods. (#10946)
Co-authored-by: Akuli <akuviljanen17@gmail.com>
2023-10-31 18:44:39 +02:00
Nikita Sobolev a5d616303d Remove invoke stubs (#10956) 2023-10-31 11:31:31 +01:00
Nikita Sobolev 40e0423a86 Remove pyvmomi stubs (#10957) 2023-10-31 11:31:06 +01:00
Jelle Zijlstra 9fb52127ab jsonschema: move addionalItems (#10955)
https://github.com/python-jsonschema/jsonschema/commit/daa40b3eaf55f72f6154f9a48e557d895617b24a

Fixes #10953
2023-10-30 17:40:28 -07:00
Sebastian Rittau f7aa7b709a Improve regression test documentation (#10935)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-10-29 10:07:17 +00:00
github-actions[bot] c74c8b0507 Bump pyOpenSSL to 23.3.* (#10936)
Release: https://pypi.org/pypi/pyOpenSSL/23.3.0
Homepage: https://pyopenssl.org/
Repository: https://github.com/pyca/pyopenssl
Diff: https://github.com/pyca/pyopenssl/compare/23.2.0...23.3.0

Stubsabot analysis of the diff between the two releases:
 - Total lines of Python code added: 414.
 - Total lines of Python code deleted: 717.

---
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2023-10-29 10:01:38 +00:00
Jelle Zijlstra 9d345b4df4 Add stubs for portpicker (#10944)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-10-29 01:13:25 +01:00
Benedikt Radtke 1196915b39 fix nullability of scrypt params (#10942) 2023-10-29 01:35:39 +02:00
Avasam f85c2f4ae1 Type pywin32's win32.win32print.StartDocPrinter method (#10898)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2023-10-28 08:48:05 -07:00
Ali Hamdan c189ca0e15 Add seaborn stubs (#10721) 2023-10-28 07:44:36 -07:00
Alex Waygood 56288ad2d0 Add stubs for importlib.(resources.)simple (#10931) 2023-10-28 07:29:57 -07:00
Ali Hamdan 6748816d43 Enable ruff's isort rules on files generated using mypy-protobuf (#10939)
Co-authored-by: AlexWaygood <alex.waygood@gmail.com>
2023-10-28 07:27:45 -07:00
Ali Hamdan 306c30a0c7 psycopg2: Fix missing Protocol base class in file protocols (#10943)
This is an error I introduced in #10630 because I didn't know protocols
need to be explicitly inherited from in other protocol subclasses.

The added test shows the change. Basically these protocols were unusable.
2023-10-28 15:09:39 +01:00
Alex Waygood 5643362a1e Skip ruff's isort rules on files generated with mypy-protobuf (#10940) 2023-10-28 12:30:26 +01:00