Sebastian Rittau
d424547b94
Run tests with Python 3.12 ( #11544 )
2024-03-08 17:32:34 +01:00
Sebastian Rittau
407b0c4d70
Update actions/setup-python to v5 ( #11542 )
...
Fixes deprecation warnings
2024-03-08 15:53:56 +01:00
Sebastian Rittau
df409a2fb5
Use a protocol for shlex.instream et al. ( #11452 )
2024-02-18 22:04:43 -08:00
Sebastian Rittau and Jelle Zijlstra
65c154f5ff
Document ignore_missing_stub in CONTRIBUTING.md ( #11426 )
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
2024-02-17 12:48:28 +00:00
Sebastian Rittau
8a38ae62fb
Update fpdf2 to 2.7.8 ( #11410 )
...
Closes : #11407
2024-02-16 05:45:29 -08:00
Sebastian Rittau
4664986cea
Turn TextIOWrapper(buffer) into a protocol ( #11420 )
2024-02-14 19:49:28 +01:00
Sebastian Rittau
00ec3fe4d8
Bump influxdb-client to 1.39.* ( #11116 )
...
Type a few task-related items
2024-02-05 05:10:18 -08:00
Sebastian Rittau
8e872a022c
numbers: Remove Any annotations ( #11347 )
2024-01-30 15:17:06 +01:00
Sebastian Rittau
3dbb2573e6
Remove flake8-plugin-utils ( #11339 )
...
Closes : #6913
2024-01-29 13:47:15 +00:00
Sebastian Rittau
ed97b42ee2
[pyOpenSSL] Update to 24.0.* ( #11338 )
2024-01-29 14:09:40 +01:00
Sebastian Rittau
cb9892477d
[Pillow] Update to 10.2.* ( #11232 )
2024-01-10 11:51:02 +01:00
Sebastian Rittau and AlexWaygood
53a8193d64
Update typing_extensions imports in stdlib ( #11244 )
...
Co-authored-by: AlexWaygood <alex.waygood@gmail.com >
2024-01-05 08:15:19 -08:00
Sebastian Rittau
b6eaadcfe5
Update typing_extensions imports in third-party stubs ( #11245 )
2024-01-05 15:40:13 +01:00
Sebastian Rittau
1b471a9a0a
Update typing_extensions imports in infrastructure and tests ( #11243 )
2024-01-05 13:30:45 +00:00
Sebastian Rittau
87a695ab98
Update typing_extensions list in CONTRIBUTING ( #11242 )
2024-01-05 13:22:32 +01:00
Sebastian Rittau
23604858a6
Remove Python 3.7 branches ( #11238 )
2024-01-05 11:39:39 +01:00
Sebastian Rittau
1b2cabce4d
Remove macpath (removed in Python 3.8) ( #11236 )
2024-01-04 15:10:36 +01:00
Sebastian Rittau
4e5f7a7142
Drop support for Python 3.7 ( #11234 )
2024-01-04 14:48:44 +01:00
Sebastian Rittau
262d73c90c
Update description of _typeshed.Self ( #11233 )
2024-01-04 14:43:22 +01:00
Sebastian Rittau
3171cb44aa
Bump fpdf2 to 2.7.7 ( #11149 )
...
Closes : #11145
2023-12-12 16:31:37 -08:00
Sebastian Rittau
fdc195465b
Add tests for TestCase.assertDictEqual() ( #11154 )
2023-12-12 16:41:18 +01:00
Sebastian Rittau
3a036b64fc
logging: Remove hack obsoleted by PEP 655 (#11078 )
2023-11-30 21:48:54 +00:00
Sebastian Rittau
d4bd6d96a0
Bump pytype to 2023.11.29 ( #11089 )
2023-11-30 08:59:51 +01:00
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
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
Sebastian Rittau and Alex Waygood
ca8ad657d3
[jsonschema] Bump to 4.20.* ( #11036 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2023-11-17 12:40:08 +00: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
Sebastian Rittau and Alex Waygood
f7aa7b709a
Improve regression test documentation ( #10935 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2023-10-29 10:07:17 +00: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
Sebastian Rittau
7e2a3413fa
Fix mypy_test if mypy returns negative exit code ( #10866 )
2023-10-11 14:53:16 +02:00
Sebastian Rittau
3632fc225c
Extend and fix zipfile ( #10861 )
...
* Add `CompleteDirs` and `FastLookup` (Python 3.8+).
* Add `Path.root` (Python 3.8+).
* Use concrete signature for `Path.open()` (Python 3.8).
* Fix signature of `Path.open()` for Python 3.9+:
+ Add overloads for text and binary modes with fixed return types.
+ Disallow extra arguments for binary modes.
+ Replace `*args` and `**kwargs` with accepted arguments for
text modes.
Closes : #10847
2023-10-08 06:30:51 -07:00
Sebastian Rittau
a042be6b17
Add a section "Stub package versioning" ( #10840 )
2023-10-08 13:00:55 +02:00
Sebastian Rittau
54a8fd74a7
PyInstaller: List ignored building sub-modules explicitly for stubtest ( #10845 )
...
This prevents stubtest from ignoring errors in modules that are stubbed.
2023-10-06 12:05:46 +01:00
Sebastian Rittau
af8c3a1b93
[bleach] Add html5lib_shim.Filter__init__/__iter__ ( #10835 )
...
The missing __init__ method caused `Filter` to be incompatible
with the `_Filter` protocol, preventing valid initialization of
`Cleaner` instances.
Closes : #10834
2023-10-04 17:19:26 +01:00
Sebastian Rittau
7cc2282959
[ctypes] Add note about atypical classmethod behavior ( #10795 )
2023-09-28 22:28:10 -07:00
Sebastian Rittau
6074a8f544
[tty] py312: Fix return types of set(raw|cbreak) ( #10785 )
...
Also add `termios._AttrReturn` type alias to be used in tty
2023-09-28 07:15:20 -07:00
Sebastian Rittau and Alex Waygood
6ca7505af7
Bump jsonschema to 4.19.* ( #10583 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2023-09-22 20:11:54 -07:00
Sebastian Rittau
c31e12fff1
[redis] Don't recommend uninstalling types-redis ( #10694 )
2023-09-12 17:49:26 +02:00
Sebastian Rittau
114949b5ad
Note that Python 3.7 support is limited ( #10601 )
2023-08-21 13:39:45 +01:00
Sebastian Rittau
cfc671f6bd
Use Python 3.8 in runtests.py ( #10600 )
...
We only support running mypy using 3.8+ up, since mypy 1.5 dropped
support for running with Python 3.7.
Closes : #10599
2023-08-21 11:30:13 +02:00
Sebastian Rittau
695d41f487
Bump aiofiles to 23.2.* ( #10584 )
2023-08-16 12:05:42 +01:00
Sebastian Rittau and Alex Waygood
ca157cc3c1
Bump influxdb-client to 1.37.* ( #10585 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2023-08-16 12:03:11 +01:00
Sebastian Rittau
31ae7b13c7
Add _typeshed.sentinel ( #10582 )
2023-08-16 11:31:05 +02:00
Sebastian Rittau
da946f36da
Bump pytype to 2023.8.14 ( #10581 )
2023-08-15 11:39:37 +01:00
Sebastian Rittau
47905d2d19
stubsabot: Add stubsabot label to PRs ( #10507 )
2023-07-25 17:40:11 +02:00
Sebastian Rittau
9b94bd4e5f
stubsabot: Add distributions argument ( #10505 )
...
[stubsabot] Add distributions argument
This allows to specify which explicitly which distributions to update.
Useful for testing.
2023-07-25 06:40:55 -07:00
Sebastian Rittau
26e8b9c68a
[stubsabot] Include repository in issue text ( #10488 )
...
Also, get GitHub repository for diff from METADATA.toml, instead of
scraping it from PyPI.
2023-07-20 17:22:15 +02:00
Sebastian Rittau
afe18e95a9
Add an upstream_repository field to METADATA.toml ( #10487 )
...
Closes : #10478
2023-07-20 16:45:41 +02:00
Sebastian Rittau
a04cb3b058
Add stubs for qrcode ( #10380 )
2023-07-20 14:36:20 +02:00
Sebastian Rittau
7ea173c4ad
Fix @patch when new is missing ( #10459 )
2023-07-14 12:53:13 +02:00
Sebastian Rittau
1925730585
[jsonschema] Use Incomplete instead of Any ( #10451 )
...
Replace `Any` with `Incomplete`
2023-07-13 13:34:24 +01:00
Sebastian Rittau and Alex Waygood
19992e6212
Mark some errnos as darwin- or solaris-only ( #10440 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2023-07-11 17:09:40 +01:00
Sebastian Rittau
f96505474d
Bump Pillow to 10.0.* ( #10411 )
2023-07-06 15:05:38 +01:00
Sebastian Rittau
edff8874da
[Pillow] Replace Any with Incomplete ( #10409 )
2023-07-06 14:48:50 +01:00
Sebastian Rittau
1e6b8a9b88
[Pillow] Update TiffImagePlugin for Python 3.11 ( #10399 )
...
Also type the methods forwarded from Fraction and replace
`Any` with `Incomplete`.
2023-07-06 15:34:49 +02:00
Sebastian Rittau
1e25866b23
Improve pytype compatibility handling ( #10377 )
2023-06-28 12:29:13 +02:00
Sebastian Rittau
d2c87ac97d
Bump redis to 4.6.0 ( #10360 )
...
Closes : #10359
2023-06-27 19:25:52 +01:00
Sebastian Rittau and Alex Waygood
b10f482e36
Bump mysqlclient to 2.2 ( #10353 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2023-06-23 12:41:55 +01:00
Sebastian Rittau and Alex Waygood
c3ddf3201a
Bump croniter to 1.4 ( #10341 )
...
Also require `bytes` for all `hash_id`s for consistency, even
if some methods might work with other types as well. But
using other types might hint at some inconsistent type
usage and be a source of possible bugs.
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2023-06-21 14:37:30 +01:00
Sebastian Rittau and Alex Waygood
06c2fb047a
Bump setuptools to 68.0 ( #10339 )
...
* Any -> Incomplete in a few files
* Bump setuptools to 68.0.*
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2023-06-21 13:26:55 +01:00
Sebastian Rittau
5f9d05c7f5
TemporaryFile(): Handle one more case correctly ( #10284 )
2023-06-14 05:33:01 -07:00
Sebastian Rittau
ce222e5cd7
Split requirements file into sections ( #10309 )
...
Also note that type checkers and linters should be pinned to a specific
version.
2023-06-12 20:18:16 +02:00
Sebastian Rittau
be925c0d3f
Check that linters/type checkers are pinned to an exact version ( #10311 )
2023-06-12 20:12:14 +02:00
Sebastian Rittau
5092f52c45
Update description of test scripts ( #10310 )
2023-06-12 18:42:33 +01:00
Sebastian Rittau
0fe724dfab
Tighten tempfile() return types ( #10232 )
2023-06-07 21:57:13 -07:00
Sebastian Rittau
786bd22343
[aiofiles] Use file mode alias from _typeshed ( #10233 )
2023-06-07 06:14:03 -07:00
Sebastian Rittau
70d8d059a0
Make all tests executable ( #10267 )
2023-06-06 15:42:07 +02:00
Sebastian Rittau
15df17098a
[PyYAML] Improve dump/serialize types ( #10196 )
...
* Add overloads to return `str` or `bytes`, instead of `Any`.
* Mark some arguments as keyword-only.
* Add missing default values.
2023-05-22 16:40:04 +02:00
Sebastian Rittau
ff700e1b95
Fix return type of FPDF.output() ( #10166 )
2023-05-10 07:05:48 -07:00
Sebastian Rittau
5fdbf37c1f
[requests] Update stubs to 2.30 ( #10141 )
2023-05-05 11:01:21 +01:00
Sebastian Rittau and Alex Waygood
f1c419e816
[fpdf2] Update stubs for fpdf 2.7.4 ( #10136 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2023-05-03 16:52:43 +01:00
Sebastian Rittau
ec1130adcc
[fpdf2] Update to 2.7.1 ( #9978 )
2023-05-03 17:06:12 +02:00
Sebastian Rittau
81f6beda9e
Document sys.std* typing ( #10135 )
2023-05-03 16:30:37 +02:00
Sebastian Rittau
be0ef21167
[zipfile] Move protocol behind version gate ( #10036 )
...
This protocol is only used for our Python 3.8 stubs. Therefore it's best to limit its availability as much as
possible.
2023-04-12 15:07:49 +01:00
Sebastian Rittau
8f17863f0c
[pyOpenSSL] Fix return type of SSLeay_version ( #10037 )
...
Closes : #10024
2023-04-12 15:01:30 +01:00
Sebastian Rittau
027460f11a
Remove unnecessary ellipsis expressions ( #9976 )
...
Ignore flake8 F821 warnings in stub files
2023-03-29 13:28:06 +02:00
Sebastian Rittau
0bb57fcbc6
[zstd] Add ZSTD_(max_)threads_count methods ( #9938 )
...
Closes : #9935
2023-03-24 12:18:41 +00:00
Sebastian Rittau and Alex Waygood
c7d805b142
[openpyxl] Annotate Worksheet and other items ( #9892 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2023-03-23 23:45:00 +00:00
Sebastian Rittau
f6f1fa3df4
[minidom] Annotate getElement* methods correctly ( #9919 )
2023-03-22 15:17:36 +00:00
Sebastian Rittau
104cdf9d0d
[redis] Update stubs to 4.5.2 ( #9912 )
2023-03-21 20:26:41 +00:00
Sebastian Rittau and Avasam
a544b75320
[SQLAlchemy] Annotate row classes ( #9568 )
...
Co-authored-by: Avasam <samuel.06@hotmail.com >
2023-03-15 00:57:54 -07:00
Sebastian Rittau
8877c12cdf
[openpyxl] Update to 3.1, add more annotations ( #9875 )
...
Closes : #9644
2023-03-15 00:50:16 -07:00
Sebastian Rittau
05453b0c0a
Update caldav to 1.2 ( #9821 )
...
Also add a few default values and replace some instances of Any with
Incomplete.
2023-02-27 13:42:33 +01:00
Sebastian Rittau
39487a8bab
[redis] Update to 4.5.1 ( #9697 )
...
Also add a few argument defaults
2023-02-10 11:10:37 +00:00
Sebastian Rittau
ad1e2bede1
[fpdf2] FPDF.add_font() accepts PurePaths ( #9699 )
2023-02-09 05:57:45 -08:00
Sebastian Rittau
565a1a07ad
Remove note about Optional still being necessary sometimes ( #9687 )
2023-02-07 03:03:22 -08:00
Sebastian Rittau
dc389eafe7
Update setuptools to 67.1 ( #9664 )
...
Replace some instances of `Any` with `Incomplete` or proper types.
2023-02-03 11:43:35 +00:00
Sebastian Rittau
cd64563dd8
Rework the "Incomplete stubs" section ( #9548 )
...
Also move it to the "Conventions" section due its scope change.
Closes : #8955
2023-02-03 11:58:25 +01:00
Sebastian Rittau and Alex Waygood
4148a7b73e
Upgrade bleach stubs for 6.0 ( #9583 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2023-01-24 15:46:34 +00:00
Sebastian Rittau
eb4d17031f
[fpdf2] Restore string default values ( #9562 )
...
Cf. #9546
2023-01-18 11:29:32 +00:00
Sebastian Rittau
7b848b4ede
Update fpdf2 stubs to 2.6.1 ( #9546 )
2023-01-17 13:25:41 +01:00
Sebastian Rittau
b8f337a452
SQLAlchemy: Annotate text() ( #9498 )
2023-01-11 15:01:11 +00:00
Sebastian Rittau
b1cb9c8a8f
Update SQLAlchemy stubs to 1.4.46 ( #9464 )
...
Replace `Any` with `Incomplete` where applicable
2023-01-05 19:37:12 +00:00
Sebastian Rittau
feb9b2dc9f
[influxdb-client] Annotate Point and partially client classes ( #9442 )
2023-01-02 18:14:39 +01:00
Sebastian Rittau
3e00c01ca6
Add stubs for influxdb-client ( #9429 )
2022-12-30 14:54:56 -08:00
Sebastian Rittau and Alex Waygood
0cf685cc17
Fully annotate ExifRead ( #9403 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2022-12-27 17:46:54 +00:00
Sebastian Rittau
db6644790b
Initial ExifRead stubs ( #9401 )
2022-12-23 12:37:44 +01:00
Sebastian Rittau
f52099a22b
Annotate more items in pika.channel ( #9385 )
2022-12-19 15:07:47 +00:00
Sebastian Rittau and Alex Waygood
fe9c7384fd
pika: Make Method generic, annotate DeclareOk ( #9360 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2022-12-14 19:42:57 +00:00