Sebastian Rittau
73fbb53475
Update setuptools stubs ( #8345 )
...
setuptools now vendors `distutils` as `setuptools._distutils`.
2022-07-20 18:44:22 +02:00
Sebastian Rittau
5534007189
Fix return type of email.header.decode_header() ( #8337 )
2022-07-19 20:43:48 +01:00
Sebastian Rittau
ef443b6359
Re-enable SQLAlchemy mypy tests ( #8282 )
...
These used to crash if run twice in succession locally, but the crash has been fixed on mypy 0.971
2022-07-19 16:46:39 +01:00
Sebastian Rittau
ba8ea2c911
Move Rune Tynan to former maintainers ( #8306 )
2022-07-15 22:13:27 +02:00
Sebastian Rittau
91fd79c158
Updates for Python 3.11.0b4 ( #8288 )
2022-07-13 13:10:20 +02:00
Sebastian Rittau
a0f6fb5669
Turn requests.requests.packages into a module ( #8281 )
...
Remove obsolete class VendorAlias
2022-07-12 20:30:28 +02:00
Sebastian Rittau
faae950ade
Use error codes for type ignores ( #8280 )
...
Disable reportSelfClsParameterName for pytype as this is out of typeshed's
control
Closes : #7497
2022-07-12 20:15:49 +02:00
Sebastian Rittau
9a5c865034
Drop support for Python 3.6, part 1 ( #8250 )
...
* Document that typeshed support 3.7+.
* Don't run tests on Python 3.6.
* Remove Python 3.6 allow lists.
* Merge common allowlist items.
Part of #6189
2022-07-07 14:42:02 +02:00
Sebastian Rittau
f135c6515d
Fix size parameter of FPDF.set_font_size ( #8234 )
2022-07-04 12:23:31 +01:00
Sebastian Rittau
7b54854c90
Remove the dataclasses third-party stub ( #8216 )
...
dataclasses is part of the Python stdlib and the third-party package is
not supported past Python 3.6.
2022-06-30 12:14:29 +02:00
Sebastian Rittau
ec7ab6d4d6
Mark the dataclasses stubs as no longer updated ( #8215 )
2022-06-30 11:47:36 +02:00
Sebastian Rittau
3c959d099b
Update redis stubs to 4.3.4 ( #8199 )
...
Fixes #8196
2022-06-28 16:38:15 +01:00
Sebastian Rittau
9eed3275c3
tabulate: Add maxcolwidths arguments ( #8132 )
2022-06-22 11:48:48 +01:00
Sebastian Rittau
678c231e5b
Add types for zxcvbn ( #8089 )
2022-06-21 04:34:48 -07:00
Sebastian Rittau
6a64e69054
Update redis stubs to 4.3 ( #8108 )
2022-06-20 12:09:38 -07:00
Sebastian Rittau
60507a08a2
Mark characteristic as no longer updated ( #8038 )
...
Part of #8012
2022-06-08 18:57:15 +02:00
Sebastian Rittau
d8c0f25f0d
Explain the no_longer_updated METADATA field ( #8037 )
2022-06-08 18:46:41 +02:00
Sebastian Rittau
214bf15dce
Use "all +=" instead of duplicating the branches ( #7865 )
2022-06-07 13:32:19 +02:00
Sebastian Rittau
07ac9675e4
SQLAlchemy 1.4.37 fixes ( #8003 )
...
Closes : #8001
2022-06-01 09:50:40 +01:00
Sebastian Rittau
d2728cf688
dateutil: Add dateutil.rrule.weekdays ( #7968 )
...
Closes : #7946
2022-05-27 11:15:03 +01:00
Sebastian Rittau
301caad709
Update mypy to 0.960 ( #7948 )
2022-05-25 14:44:22 +02:00
Sebastian Rittau
a412ddb437
Update pyright ( #7914 )
...
Required for #7865
2022-05-21 19:15:06 +01:00
Sebastian Rittau
adf48f1f96
Only run CI on pushes to main/master and pull requests ( #7883 )
...
Currently, when a maintainer opens a pull request from a branch in the
typeshed repository (instead of a fork), CI is run twice: once for the
PR and once for the push. This not only wastes CI minutes (and it seems
we're running into some limits lately), but also makes CI output twice
as large and more difficult to process.
The disadvantage is that a PR needs to be opened to run CI.
Alternatively, CI can be triggered manually.
2022-05-20 14:14:25 +02:00
Sebastian Rittau
3aaa1d0ada
Upgrade pyright to 1.1.247 ( #7867 )
2022-05-18 19:56:19 +01:00
Sebastian Rittau
7ca82d5fb4
stubtest third party: remove extra line when skipping a distribution ( #7864 )
2022-05-18 20:15:55 +02:00
Sebastian Rittau
b65ef3a722
Make third party stubtest output more succinct ( #7853 )
...
stubtest_third_party.py will now only print a single line when the test
succeeds for a certain distribution, unless the "-v" option is given.
When the test fails or "-v" is given, will still print the full output.
The success status is now colored to make spotting failures easier.
stdout/stderr is now used consistently: The distribution name and
success status is always printed to stdout, all other output goes to
stderr. Running the script with "2>/dev/null" will only show the success
status of the test, one per line.
2022-05-17 16:10:58 -07:00
Sebastian Rittau
f21898abb9
Improve I/O types in socket.pyi ( #7852 )
...
* Use a protocol for socket.sendfile() "file" argument.
* Use concrete classes for socket.makefile() return types.
2022-05-17 06:11:50 -07:00
Sebastian Rittau
e1bd9c73f0
Use I/O protocols in codecs.pyi ( #7849 )
2022-05-17 15:01:57 +02:00
Sebastian Rittau
a05ee9740d
Markdown: use I/O protocols ( #7851 )
2022-05-17 15:00:59 +02:00
Sebastian Rittau
b211bf31a3
Update testing_engine() annotations ( #7818 )
2022-05-10 12:46:01 +03:00
Sebastian Rittau
460537c7f6
Add missing redis modules and classes ( #7676 )
...
This adds asyncio support and support for redis.typing.
2022-05-04 11:29:13 +02:00
Sebastian Rittau
fa701ab0ee
Run apt-get update before installing packages ( #7749 )
...
Fixes #7743
2022-04-30 06:42:23 -06:00
Sebastian Rittau
5df8de7693
Move a few protocol from builtins to _typeshed ( #7736 )
2022-04-28 17:36:47 +02:00
Sebastian Rittau
5535b7fc08
Update caldav stubs for 0.9 ( #7734 )
2022-04-28 17:56:43 +03:00
Sebastian Rittau
ff2feff7df
dateutil.tz.tz: Replace IO with protocols ( #7717 )
2022-04-27 16:37:57 +03:00
Sebastian Rittau
02310d93da
Update pyright to 1.1.240 ( #7701 )
2022-04-27 15:02:30 +02:00
Sebastian Rittau
f7aa41245e
Drop Python 2 support in third-party stubs ( #7703 )
2022-04-27 15:32:17 +03:00
Sebastian Rittau and Akuli
2d468966f5
Add various missing generic arguments ( #7702 )
...
Co-authored-by: Akuli <akuviljanen17@gmail.com >
2022-04-27 15:25:35 +03:00
Sebastian Rittau
fa4677424a
Remove Python 2 support from simplejson ( #7704 )
2022-04-27 11:57:29 +02:00
Sebastian Rittau
60f0497a72
Drop support for Python 2 in termcolor ( #7707 )
2022-04-27 12:56:38 +03:00
Sebastian Rittau
cfdff16e4e
Drop Python 2 support from chardet ( #7708 )
2022-04-27 12:54:40 +03:00
Sebastian Rittau
03e1e3b4d3
Drop Python 2 support from python-gflags ( #7709 )
2022-04-27 12:54:12 +03:00
Sebastian Rittau
98aa6d75fe
Drop Python 2 support from python-dateutil ( #7715 )
2022-04-27 12:52:46 +03:00
Sebastian Rittau
5edf5f0cc9
Remove Python 2 support from toml ( #7713 )
2022-04-27 12:52:28 +03:00
Sebastian Rittau
27af3dc6b1
Drop Python 2 support from click-spinner ( #7710 )
2022-04-27 12:49:27 +03:00
Sebastian Rittau
6245bc7432
Remove Python 2 support from entrypoints ( #7711 )
2022-04-27 12:47:50 +03:00
Sebastian Rittau
e916fb5f1e
Remove Python 2 support from atomicwrites ( #7712 )
2022-04-27 12:45:44 +03:00
Sebastian Rittau
891d46cbb4
Drop Python 2 support from polib ( #7714 )
2022-04-27 12:42:23 +03:00
Sebastian Rittau
f39149d3a9
Drop Python 2 support from emoji ( #7716 )
2022-04-27 12:33:42 +03:00
Sebastian Rittau
54c8f45869
pytype now supports Python 3.10 ( #7700 )
2022-04-27 10:59:34 +02:00
Sebastian Rittau
d0990a0487
Drop Python 2 support from python-nmap ( #7706 )
2022-04-27 10:58:48 +02:00
Sebastian Rittau
2fb8424503
Drop Python 2 support from croniter ( #7705 )
2022-04-27 10:58:34 +02:00
Sebastian Rittau
3a98e8be6b
Update redis stubs to 4.2 ( #7675 )
...
Closes #7597
2022-04-23 22:15:10 -07:00
Sebastian Rittau
2a0fc1b582
Annotate Error and Diagnostics ( #7671 )
...
Move cursor class to top of file so it can be used as base class
2022-04-21 21:19:34 -07:00
Sebastian Rittau
321359ca31
Add _typeshed.(Opt)ExcInfo ( #7645 )
2022-04-18 00:28:43 +01:00
Sebastian Rittau
499e74cf2a
Add wsgiref.types (Python 3.11+) ( #7644 )
...
_typeshed.wsgi: Import from wsgiref.types in Python 3.11+
Make types match wsgiref.types
2022-04-16 21:36:31 +02:00
Sebastian Rittau
7a3eb5a481
Use tuple instead of _typing.Tuple in ast ( #7639 )
2022-04-16 16:15:42 +01:00
Sebastian Rittau
182fa6321c
Update gettext translations ( #7636 )
...
* Use a protocol instead of `IO` for `fp` argument.
* Annotate a few missing return types.
* Mark some class constants as final.
Fixes #7628
2022-04-16 07:07:15 -07:00
Sebastian Rittau
636a7e8b37
Update bleach stubs to version 5 ( #7612 )
2022-04-11 17:48:55 -07:00
Sebastian Rittau
ef819f3910
Remove pre-Python 3.6 branches from datetime.pyi ( #7602 )
2022-04-07 11:33:45 +02:00
Sebastian Rittau
3941e959ca
Update google-cloud-ndb stubs to 1.11 ( #7593 )
2022-04-05 06:58:02 -07:00
Sebastian Rittau
4c9dc43c87
Update SQLalchemy to 1.4.34 ( #7573 )
...
Closes : #7572
2022-04-01 14:22:00 +01:00
Sebastian Rittau
9687d53b65
Use explicit type aliases in _typeshed ( #7534 )
2022-03-30 11:06:07 +02:00
Sebastian Rittau and Alex Waygood
c41034c354
passlib: Annotate various handler methods and fields ( #7521 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2022-03-26 20:53:05 -07:00
Sebastian Rittau
9a76b13127
Add _typeshed.Incomplete ( #7535 )
...
Closes : #5613
2022-03-25 10:18:09 +01:00
Sebastian Rittau
41160cc294
Fix primer comment workflow ( #7545 )
2022-03-24 08:02:54 -07:00
Sebastian Rittau
00f1807836
Update black target version to py310 ( #7538 )
...
This makes no difference to existing files, but allows scripts to use
the match statement.
2022-03-23 07:57:17 -07:00
Sebastian Rittau
251dd52b57
Remove backports_abc third-party package ( #7533 )
...
The last release was in 2016 and it's not required in any currently
supported Python 3 version.
2022-03-22 11:43:59 -07:00
Sebastian Rittau
b307142f62
Update pytype to 2022.3.21 ( #7532 )
2022-03-22 08:30:03 +00:00
Sebastian Rittau
50107e6e2b
'Inactive' -> 'former' consistently ( #7512 )
2022-03-18 06:01:04 -07:00
Sebastian Rittau
108b6fb091
pyright: Don't report incompatible overrides ( #7498 )
...
These overrides are inherited from the implementation and are out of
typeshed's control.
2022-03-16 16:20:06 +01:00
Sebastian Rittau
fdc5863337
Use stubtest 0.941 ( #7490 )
2022-03-15 00:37:34 -07:00
Sebastian Rittau
1cc31cd470
passlib: Annotate pbkdf2_sha* ( #7486 )
2022-03-14 08:55:37 -07:00
Sebastian Rittau
cdb573b398
Remove explicit inheritance from object ( #7468 )
2022-03-09 19:43:44 +01:00
Sebastian Rittau
6df2274a41
Inactive maintainers policy ( #7467 )
...
Closes : #7449
2022-03-09 19:28:05 +01:00
Sebastian Rittau and Alex Waygood
c3907ab26b
Remove Python 2 support from some third-party distributions ( #7466 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2022-03-09 20:19:22 +02:00
Sebastian Rittau
889164cb0c
psycopg2: Annotate cursor execute* and dunder methods ( #7460 )
2022-03-08 08:13:19 -08:00
Sebastian Rittau
addce5c067
Add passlib stubs ( #7024 )
2022-03-06 16:25:00 -08:00
Sebastian Rittau
7e5d2a58aa
Add openpyxl stubs ( #6801 )
2022-03-06 16:24:17 -08:00
Sebastian Rittau
24616d65d9
6-12 months -> six months ( #7411 )
...
"At least 6-12 months" is equivalent to "at least six months" and we
usually remove after six month, unless there are issues.
2022-03-01 17:37:53 -08:00
Sebastian Rittau
7f2cf525e9
Add six.create_bound_method dunders to allowlist ( #7409 )
...
Closes : #7404
2022-03-01 07:16:49 -08:00
Sebastian Rittau
000b466b21
Remove orjson stubs ( #7410 )
2022-03-01 10:59:31 +01:00
Sebastian Rittau
3afcc1b2b1
Mark selenium stubs as obsolete ( #7383 )
2022-02-25 15:46:39 +01:00
Sebastian Rittau
7b024f5e9a
Update dateparser stubs for 1.1 ( #7368 )
2022-02-23 11:15:24 -08:00
Sebastian Rittau
ffeac7297f
Re-export RedisCluster from redis ( #7371 )
2022-02-23 16:39:09 +01:00
Sebastian Rittau
7a81bd41e9
Re-introduce the 'stubtest' key for third-party packages ( #7351 )
...
Some distributions can't be tested with stubtest for a variety of
reasons or because of bugs in stubtest. This key:
* let's us keep metadata about a distribution in one place,
* prevents us from modifying the scripts because of issues with a
specific distribution, and
* will trigger tests if only the key is changed.
2022-02-22 15:59:27 +01:00
Sebastian Rittau
ae39348d7a
Annotate Session.execute() and Result ( #7252 )
...
* Annotate return type of Session.execute()
* Annotate Result return types
* Remove sub-class overrides with identical signatures
2022-02-17 09:27:55 -08:00
Sebastian Rittau
e3742686b1
Update to redis 4.1.4 ( #7247 )
...
Closes : #7245
2022-02-17 01:33:33 -08:00
Sebastian Rittau
4a0dabda1b
Various SQLalchemy type improvements ( #7238 )
...
* Make ColumnOperators and ColumnElement generic
* Overload Session.query() return type
* Annotate ColumnOperators methods
2022-02-16 19:03:48 -08:00
Sebastian Rittau
44bcf5eed0
Various SQLalchemy fixes and improvements ( #7237 )
2022-02-16 06:46:11 -08:00
Sebastian Rittau
92685d18f7
Update to Python 3.9.10 and 3.10.2 ( #6977 )
2022-02-11 17:37:31 -08:00
Sebastian Rittau
84b5e73396
protobuf doesn't support Python 2 anymore ( #7176 )
...
Remove Python-2-only package "futures"
2022-02-11 08:10:31 -08:00
Sebastian Rittau
97a327b984
fpdf2: Correct annotations of @contextmanager methods ( #7172 )
2022-02-10 18:15:09 +01:00
Sebastian Rittau
7179fee2d8
is_zipfile() also accepts bytes paths ( #7106 )
...
Use a protocol for is_zipfile(), instead of IO
2022-02-04 21:27:02 -08:00
Sebastian Rittau
2dc53caffe
Improve abc module and builtin function decorators ( #5703 )
2022-02-02 16:22:32 +01:00
Sebastian Rittau
54fde0c2a1
Improve protocol return types ( #7093 )
...
* Dunder comparisons must return bool.
* write() return type should be ignored.
* Use custom comparison protocols in _operator.pyi
2022-02-01 08:59:07 +01:00
Sebastian Rittau
cb3c1bb638
Replace IO with protocols ( #7092 )
2022-01-31 11:39:56 +02:00
Sebastian Rittau
6746e83f52
Counter/defaultdict: Key type 'str' if initialized with keywords ( #7048 )
2022-01-28 12:41:58 +02:00
Sebastian Rittau
4390b88986
Update redis stubs for 4.1.2 ( #7064 )
2022-01-28 11:30:23 +02:00
Sebastian Rittau
b87ebc5375
Don't use a literal for TYPE_CHECKING ( #7062 )
...
Partly addresses #7061
2022-01-27 23:51:22 -08:00