Commit Graph

8546 Commits

Author SHA1 Message Date
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)
daa40b3eaf

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
Avasam
49ba409da8 Replace isort with Ruff (#10912) 2023-10-27 20:14:38 -07:00
Alex Waygood
77bccbe1f1 sys.monitoring.restart_events() is no longer undocumented (#10938)
Following 3f84a19e62
2023-10-27 17:14:54 +01:00
Sebastian Rittau
1c184fea33 Simplify Traversable signature (#10934)
Simplify Traversable.open() signature. This is necessary so that implentors can
reasonanbly implement this method. For example `zipfile.Path.open()` (which
is considered a `Traversable`) only supports this subset.

Make `Traversable.__truediv__` and `joinpath` arguments pos-only. The
arguments are named differently in both `pathlib.Path` and `zipfile.Path`.
2023-10-27 00:50:11 +02:00
Alex Waygood
a08d4c8d2e Remove many redundant inheritances from Generic[] (#10933) 2023-10-26 20:07:20 +02:00
Alex Waygood
5dbdd59c9b Add io.text_encoding on py310+ (#10929)
See https://discuss.python.org/t/type-checkers-complain-about-io-text-encoding/37187/1 for discussion. The function is documented, even though it's not included in `io.__all__` (which is why stubtest hasn't been complaining about it being missing): https://docs.python.org/3/library/io.html#io.text_encoding
2023-10-26 10:41:31 -07:00
Alex Waygood
908993a807 Add stubs for importlib.(resources.)readers (#10928)
Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
2023-10-26 14:18:55 +01:00
David Salvisberg
17a8c920d9 Finish stubs for webob.cookies and improve samesite type (#10927) 2023-10-26 13:28:15 +02:00
Aditya Paul
2ce9dcd5fb Allow str for tkinter.Scrollbar.set() (#10926) 2023-10-25 20:48:08 +03:00
Viicos
78fba20110 Make inspect.getblock more ergonomic for common input types (#10920) 2023-10-25 12:58:11 +01:00
Nikita Sobolev
5c775a3502 Improve int.__pow__ and float.__pow__ comments (#10925)
It used to be `__x`. Now, it is not clear what `x` is in this context.
2023-10-25 10:15:34 +01:00
Alex Waygood
40caa050ce Simplify how we run mypy_test.py on Python 3.12 (#10923) 2023-10-23 22:13:22 +01:00
github-actions[bot]
ba3f23b204 [stubsabot] Mark tzlocal as obsolete since 5.2 (#10921)
Release: https://pypi.org/pypi/tzlocal/5.2
Repository: https://github.com/regebro/tzlocal
Changelog: https://github.com/regebro/tzlocal/blob/master/CHANGES.txt
Diff: https://github.com/regebro/tzlocal/compare/5.1...5.2

Co-authored-by: stubsabot <>
2023-10-23 08:48:30 +01:00
Avasam
e477c67852 Check *_pb2.pyi files again (#10909) 2023-10-23 01:22:55 +01:00
Jelle Zijlstra
f9f30cc0f2 Update mypy-protobuf (#10914)
Co-authored-by: Avasam <samuel.06@hotmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-10-22 16:31:02 -07:00
Alex Waygood
b9640005eb Add stubs for nt (#10917) 2023-10-19 10:16:06 -07:00
Avasam
21fcd8960f Use Ruff for from __future__ import annotations checks (#10910) 2023-10-19 11:40:41 +02:00
Avasam
3cb1a8faed Configure editors to explicitly use LF / \n line endings (#10916) 2023-10-19 09:34:40 +02:00
Avasam
35873ec3d8 Doc: Use proper name capitalization of tooling (Ruff, Black, Flake8) (#10913) 2023-10-18 23:46:53 +01:00
Alex Waygood
608eca5234 Improve stubs for braintree.environment (#10907) 2023-10-18 18:49:17 +01:00
Nikita Sobolev
d14c5f82c8 Bump pyright to 1.1.332 (#10904)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-10-18 10:09:50 +01:00
Alex Waygood
2f8d01e9ec Bump mypy to 1.6.1 (#10862) 2023-10-18 07:18:05 +01:00
Rebecca Chen
1ecaab1641 Run pytype_test in Python 3.11. (#10903)
As of version 2023.10.17, pytype now supports 3.11.
2023-10-18 00:44:14 +01:00