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
Sebastian Rittau and Akuli
c2182fdd3e
Treat validators as classes ( #7035 )
...
Co-authored-by: Akuli <akuviljanen17@gmail.com >
2022-01-25 07:43:40 -08:00
Sebastian Rittau
fabd842857
Annotate parts of jsonschema.validators and URIDict ( #7025 )
2022-01-24 16:42:29 +01:00
Sebastian Rittau
46159aeca3
Update SQLAlchemy stubs for 1.4.31 ( #6990 )
2022-01-21 18:10:25 -08:00
Sebastian Rittau
852723aa69
Temporarily pin Python 3.9.9 and 3.10.1 for stubtest ( #6974 )
2022-01-20 11:47:46 +01:00
Sebastian Rittau
fb6c9621d6
Update SQLAlchemy stubs for 1.4.30 ( #6973 )
2022-01-20 12:34:02 +02:00
Sebastian Rittau
5bf672ce42
Update redis stubs to 4.1.1 ( #6960 )
...
Closes : #6951
2022-01-19 07:05:15 -08:00
Sebastian Rittau
28faad6143
Unpin 3.10.1 ( #6965 )
2022-01-19 06:44:31 -08:00
Sebastian Rittau
7d2de33bba
Temporarily fix redis version to 4.1.0 ( #6952 )
...
Quick fix for #6951
2022-01-18 06:53:37 -08:00
Sebastian Rittau
f7534891f1
Annotate command kwargs arguments ( #6721 )
2022-01-13 11:22:08 +01:00
Sebastian Rittau
67c5d73cdb
Further annotate sqlalchemy.engine and collections ( #6680 )
2022-01-09 15:20:17 +02:00
Sebastian Rittau
f4ce1ebaf8
Use positional-only arguments for IO ( #6851 )
2022-01-08 20:49:29 +02:00
Sebastian Rittau
f8501d33c7
Use types-urllib3 for requests ( #6859 )
2022-01-08 16:25:50 +02:00
Sebastian Rittau
38811a4495
Fix check consistent ( #6860 )
2022-01-08 15:35:42 +02:00
Sebastian Rittau
29563c3cc3
Add urllib3 stubs ( #6858 )
2022-01-08 14:49:06 +02:00
Sebastian Rittau and Jelle Zijlstra
2ad8db51ad
Update to mypy 0.931 ( #6850 )
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
2022-01-07 19:21:10 +01:00
Sebastian Rittau
e77a66aced
Update pyright ( #6840 )
2022-01-07 18:58:15 +02:00
Sebastian Rittau
eee7f71f23
Update pytype ( #6839 )
...
* Update pytest and pyright
* Don't upgrade pyright
2022-01-06 00:06:46 -08:00
Sebastian Rittau and Akuli
4f4068243a
Upgrade stubs to Pillow 9 ( #6795 )
...
Co-authored-by: Akuli <akuviljanen17@gmail.com >
2022-01-05 14:17:56 +02:00
Sebastian Rittau
22bf9e8a78
redis: Restore type annotations of ping() and save() ( #6720 )
2021-12-28 13:08:05 +02:00
e6cb341d94
Update redis stubs to 4.1 ( #6711 )
...
Co-authored-by: Akuli <akuviljanen17@gmail.com >
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2021-12-27 21:34:34 +02:00
Sebastian Rittau
14e5d16c3a
Replace METADATA stubtest key with stubtest_apt_packages ( #6704 )
2021-12-27 17:28:59 +01:00
Sebastian Rittau
51a2cd1289
Enable stubtest for six ( #6699 )
2021-12-27 12:36:17 +02:00
Sebastian Rittau
d065ee4aef
Enable stubtest for aiofiles ( #6698 )
2021-12-26 15:54:42 +02:00
Sebastian Rittau and Akuli
74cd202b2d
Annotate return type of pygments.plugin.iter_entry_points ( #6697 )
...
Co-authored-by: Akuli <akuviljanen17@gmail.com >
2021-12-26 14:44:40 +01:00
Sebastian Rittau
f5059c0c41
Update flake8 config ( #6684 )
2021-12-26 14:45:15 +02:00
Sebastian Rittau
4f39a31553
Remove asyncio loop arguments in Python 3.10 ( #6690 )
2021-12-25 21:39:36 +02:00
Sebastian Rittau and Akuli
bb77f39b7c
Add a 'stubtest' flag to METADATA.toml ( #6687 )
...
Co-authored-by: Akuli <akuviljanen17@gmail.com >
2021-12-25 17:02:57 +02:00
Sebastian Rittau
15958a2628
Fixes for third-party mock package ( #6685 )
...
Removed a few unused private classes and methods. They can be re-added if a user reports them missing.
2021-12-25 11:43:43 +02:00
Sebastian Rittau
f9453fad5a
Continue third-party stubtest on failure ( #6686 )
2021-12-24 21:11:18 +02:00
Sebastian Rittau and Jelle Zijlstra
aa329b248b
Add execution_options to Session.get() ( #6656 )
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
2021-12-23 12:37:02 +02:00
Sebastian Rittau
5ca666631e
Remove unused allowlist entries ( #6671 )
2021-12-23 12:23:25 +02:00
Sebastian Rittau
3fb2bcd4c1
Restore stubtest 0.930 ( #6663 )
2021-12-22 20:18:19 -08:00
Sebastian Rittau
9bf2ceb963
Fix third-party issues found by stubtest ( #6667 )
2021-12-22 15:09:44 -08:00
Sebastian Rittau
2a3ff630e8
Fix return type of ParserBase.error ( #6666 )
...
As this is an abstract method, NoReturn is problematic as deriving
classes (for example in beautifulsoup4 or fpdf2) have an incompatible
return type.
2021-12-22 23:26:02 +01:00
Sebastian Rittau
8b5feeb101
Remove PIL.__main__ ( #6665 )
2021-12-22 23:17:40 +01:00
Sebastian Rittau
ca87296daf
Update to mypy 0.930 ( #6660 )
...
* Update to mypy 0.930
* Temporarily pin stubtest to 0.921
2021-12-22 12:10:45 -08:00
Sebastian Rittau
bf246b28a9
Update to mypy 0.921 ( #6657 )
...
Test third-party stubs with typeshed from mypy
2021-12-22 07:57:07 -08:00
Sebastian Rittau
426ce065b2
Various small SQLAlchemy type improvements ( #6623 )
2021-12-22 07:49:20 -08:00
Sebastian Rittau
0095536e6c
Add some DB API 2.0 protocols and types ( #6643 )
...
Closes : #1037
2021-12-21 21:14:21 -08:00
Sebastian Rittau
0cecceed90
Add some missing attributes and types to FPDF ( #6618 )
2021-12-21 07:54:04 -08:00
Sebastian Rittau
ef17852999
SQLAlchemy: Partly annotate declarative API ( #6647 )
2021-12-21 07:40:37 -08:00
Sebastian Rittau and Jelle Zijlstra
387ef81883
Return Supports(A)Next from (a)iter ( #6035 )
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
2021-12-20 19:15:59 -08:00
Sebastian Rittau
6f2ff7e895
Create SQLalchemy stubs using stubgen ( #6585 )
2021-12-17 09:38:23 -08:00
Sebastian Rittau
5f850af3ba
Upgrade daily stubtest workflow to stubtest 0.920 ( #6615 )
2021-12-16 20:54:14 +01:00
Sebastian Rittau
3e49ed754d
Allow tringgering some Actions by hand ( #6613 )
2021-12-16 11:51:34 -08:00
Sebastian Rittau
dae0b127ca
Upgrade mypy to 0.920 ( #6611 )
...
Temporily pin mypy used for stubtest checks to 0.910, until the stubtest
problems are addressed.
2021-12-16 17:53:36 +01:00
Sebastian Rittau and Akuli
c900c0e769
Fix Python 3.10.1 problems pointed out by stubtest ( #6604 )
...
Co-authored-by: Akuli <akuviljanen17@gmail.com >
2021-12-16 07:05:45 -08:00
Sebastian Rittau
f6e3bd19f3
Fix unittest.case for Python < 3.9 ( #6605 )
...
_LoggingWatcher and _AssertLogsContext were moved to unittest._log in
Python 3.9, but were in unittest.case until 3.8.
2021-12-16 13:36:01 +01:00
Sebastian Rittau
6860df029b
Fix workflow by quoting Python version in YAML file ( #6600 )
2021-12-16 12:32:00 +02:00
Sebastian Rittau
968fd6d01d
Add abstract methods to BaseTzInfo ( #6579 )
...
While these abstract methods don't exist at runtime, all sub-classes of
BaseTzInfo implement them. It can be useful to annotate variables with
BaseTzInfo and being able to call these methods on it.
2021-12-14 14:14:21 +01:00
Sebastian Rittau
74ecc2904b
Add stubs for ldap3 ( #6561 )
2021-12-10 19:18:07 +01:00
Sebastian Rittau
34721fcadc
Make create_baseline_stubs script executable ( #6511 )
2021-12-06 13:49:32 +02:00
Sebastian Rittau
4ff23ba762
caldav: Update DAVError and AuthorizationError ( #6508 )
2021-12-06 13:05:10 +02:00
Sebastian Rittau
206e1ae91b
Remove 'py3' from requirements filename ( #6509 )
2021-12-06 12:59:04 +02:00
Sebastian Rittau
8542b3518a
Remove stubs for pallets projects ( #6465 )
...
All pallets projects (Flask, Werkzeug, Jinja, Click, ItsDangerous, and
MarkupSafe) have now shipped their own stubs since May 2021. The
maintainer requested removal back then.
Closes : #5423
2021-12-01 09:34:34 -08:00
Sebastian Rittau
b09e528f64
Remove black/isort checks from CI ( #6376 )
2021-11-25 21:08:20 +02:00
Sebastian Rittau
ab026bfecb
Update redis stubs to version 4 ( #6368 )
2021-11-25 11:05:32 +02:00
Sebastian Rittau
6708ffae14
Add tz{utc,offset}.fromutc() ( #6360 )
2021-11-23 00:33:40 -08:00
Sebastian Rittau
4c41f5d769
Only run daily stubtest on python/typeshed repository ( #6354 )
2021-11-22 07:35:35 -08:00
Sebastian Rittau
5b668419ae
Fix MutableMapping overrides ( #6352 )
2021-11-21 07:04:40 -08:00
Sebastian Rittau and Jelle Zijlstra
a6e369906d
max() uses SupportsGreaterThanT ( #6342 )
...
Add SupportsGreaterThan and SupportsGreaterThanT
Closes : #6336
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
2021-11-21 13:28:46 +01:00