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
Sebastian Rittau
77810277d5
Recommend to use mypy error codes if applicable ( #6305 )
2021-11-17 21:58:05 -08:00
Sebastian Rittau
ccc09aa196
Rework stubtest tests ( #6318 )
2021-11-17 21:54:13 -08:00
Sebastian Rittau
9c2be9500a
Add hilite(shebang) argument and return type ( #6316 )
2021-11-16 09:17:08 -08:00
Sebastian Rittau
1b0e268102
Improve fpdf.image_parsing ( #6313 )
...
* Annotate more attributes, arguments, and return types.
* Add "dims" argument to get_img_info(), added in 2.4.6.
2021-11-16 17:35:08 +01:00
Sebastian Rittau
bcc743dd2b
mypy_test: Skip files starting with '.' ( #6306 )
2021-11-16 17:00:39 +02:00
Sebastian Rittau
edf82e8094
Clean up mypy flags ( #6308 )
...
* Remove --strict-optional: This has been the default since mypy 0.600.
* Remove --disallow-subclassing-any: When we subclass Any in typeshed,
we do so deliberately. This just causes us to add unncessary ignores.
2021-11-16 12:58:53 +00:00
Sebastian Rittau
5bd747570d
Update Python version for pytype ( #6288 )
2021-11-12 22:26:22 +01:00
Sebastian Rittau
f2551376ae
Add stubs for fpdf2 ( #6252 )
2021-11-10 19:06:26 +02:00
Sebastian Rittau
2679ed1c07
Add some kwonly arguments to Session.send() ( #6266 )
...
Bump version to 2.26
2021-11-09 17:23:48 -08:00
Sebastian Rittau
e22b63d9cc
Reduce mypy_test output ( #6268 )
...
Only print the mypy command twice per version: Once for the stdlib and
once for the stubs. Use a dummy /tmp path. Add a header for each tested
Python version and remove the Python version from the individual stubs.
2021-11-09 18:03:29 +01:00
Sebastian Rittau
b26fada4b9
Remove our custom code of conduct link ( #6258 )
...
By removing this, the code of conduct from the Python organization
(https://github.com/python/.github/blob/master/CODE_OF_CONDUCT.md )
should be picked up.
2021-11-08 09:47:19 -08:00
Sebastian Rittau
f4ad8f06b0
Update httplib version to 0.20.* ( #6256 )
2021-11-08 14:47:01 +02:00
Sebastian Rittau
3876587a65
Remove support for mypy_exclude_list ( #6230 )
2021-11-08 10:45:46 +02:00
Sebastian Rittau
50c1f2ab7c
Test third-party stubs in isolation ( #6229 )
2021-11-07 15:05:49 -08:00
Sebastian Rittau
c846c35d50
Process.status returns a status string ( #6245 )
...
Typed STATUS_* constants using Literal
2021-11-07 15:04:27 -08:00
Sebastian Rittau
0958692028
Suppress unnecessary traceback ( #6253 )
2021-11-07 07:35:31 -08:00
Sebastian Rittau
ce94db762c
Update pytype and pyright ( #6222 )
...
* Upgrade pytype
* Update pyright
2021-11-02 09:19:07 -07:00
Sebastian Rittau
b3f29b619b
Remove unnecessary _Collection alias ( #6188 )
...
This was a remnant of Python 3.5 compatibility, where Collection did not
exists and _Collection was aliased to a dummy class.
2021-10-22 12:32:35 -07:00
Sebastian Rittau
4e592ada7b
Upgrade PyYAML to version 6 ( #6183 )
...
* Fix load_all() argument
* Remove Python 2 remnants
+ Replace Text with str
+ Replace alias "_Str" with str
+ Import from collections.abc and re where applicable
+ Remove Python 2 branches
* Fix PyYaml allowlist entries
+ Add yaml._yaml and move CParser and CEmitter there.
+ Add missing functions, classes, and arguments.
* Use relative imports in some modules.
* Add __all__ to yaml.cyaml.
* Remove unnecessary noqa markers.
2021-10-22 20:05:58 +02:00
Sebastian Rittau
eab7adad62
Upgrade all packages ( #6160 )
2021-10-13 20:11:38 +03:00
Sebastian Rittau and Akuli
bb24e77404
Update remaining versions for third-party stubs ( #6094 )
...
Also remove the python2 markers of packages that don't list Python 2
as supported in the latest version.
Don't special case version '0.1'
Co-authored-by: Akuli <akuviljanen17@gmail.com >
2021-10-12 12:30:45 +02:00
Sebastian Rittau
9f86972350
Add star to all non-0.1 versions ( #6146 )
2021-10-11 13:41:19 -07:00
Sebastian Rittau and Akuli
46fc031ee7
Allow third-party versions to end in asterisk ( #6129 )
...
This is a first step towards #6095 , where x.y and x.y.* are treated as
equivalent. The next step is to update existing versions to use x.y.*
where applicable and then treat x.y differently.
Co-authored-by: Akuli <akuviljanen17@gmail.com >
2021-10-11 00:46:18 +02:00
Sebastian Rittau
ad7d478a8f
Use release version of Python 3.10 ( #6116 )
2021-10-05 15:49:51 +03:00
Sebastian Rittau and Akuli
32bc2161a1
Unbreak CI ( #6093 )
...
* Temporarily remove `cachetools` stubs. They will be added back soon, and meanwhile they will continue to be available on pypi.
* Remove `filelock.logger()` (no longer exists in filelock 3.2)
* Delete `OpenSSL.crypto` from stubtest whitelist
Co-authored-by: Akuli <akuviljanen17@gmail.com >
2021-09-30 14:18:47 +03:00
Sebastian Rittau
3128c6afbf
requests: Response.encoding can be None ( #6067 )
...
The type of the `encoding` attribute was previously typed as `str`, even though it can be `None` at runtime.
2021-09-25 11:50:36 +03:00
Sebastian Rittau
915feaceb6
maxminddb: Update version field and set obsolete_since ( #6055 )
2021-09-20 06:44:34 -07:00
Sebastian Rittau
0506182348
Allow three-component third-party versions ( #5995 )
...
Closes : #5992
2021-09-18 20:08:51 -07:00
Sebastian Rittau
d7bae50199
Update third-party package versions ( #5996 )
2021-09-18 20:08:38 -07:00
Sebastian Rittau
aa4a0c763a
Fix distribution name backports.ssl_match_hostname ( #5997 )
...
Bump version number to latest version available on pypi
Turn backports.ssl_match_hostname into a package to match upstream
2021-09-18 20:08:21 -07:00
Sebastian Rittau
db69e41fda
Add setuptools stubs ( #5762 )
2021-09-18 19:45:23 -07:00
Sebastian Rittau
ca38856670
Fix set annotations in concurrent.futures._base ( #6034 )
2021-09-14 11:50:20 +03:00
Sebastian Rittau
b562d233ae
(a)next only requires __(a)next__, not Iterator ( #6036 )
2021-09-14 11:43:21 +03:00
Sebastian Rittau
9295c70ec0
'module' argument to ForwardRef.__init__() added in Python 3.9.7 ( #6017 )
...
Pin Python 3.9.7 for stubtest and update 3.10.0 to rc2
2021-09-10 01:10:28 +02:00
Sebastian Rittau
2f3964e24b
Return ItemsView/KeysView from Mapping methods ( #6014 )
...
* Return ItemsView/KeysView from Mapping methods
* Make RawConfigParser compatible with Mapping
2021-09-09 07:37:26 -07:00
Sebastian Rittau
2620120a90
Update deprecated.sphinx.deprecated signature ( #6005 )
...
The signature was changed in Deprecated 1.2.13.
2021-09-05 19:11:27 -07:00
Sebastian Rittau
5f77310418
Update bleach version (no changes) ( #5982 )
2021-08-30 07:15:23 -07:00
Sebastian Rittau
bc19a28c0d
CI: use one runner per mypy version ( #5909 )
...
This makes it easier to see in which version(s) an error occurred.
2021-08-29 04:00:10 -07:00
Sebastian Rittau
8e0e13a2d5
Commit messages for stubs are now used as changelog ( #5950 )
2021-08-28 12:11:22 -07:00
Sebastian Rittau
f1532745bc
A few html5lib annotations ( #5913 )
2021-08-28 12:08:45 -07:00
Sebastian Rittau
27af44fee2
Deprecate geoip stubs ( #5967 )
...
Geoip comes with its own type hints starting at version 4.0.2.
2021-08-28 14:58:38 +03:00
Sebastian Rittau
5a7f25584e
Remove tornado stubs again ( #5973 )
2021-08-27 20:48:32 +02:00
Sebastian Rittau
47dd8549d2
Temporarily restore tornado stubs and add obsolete_since ( #5968 )
...
The stubs can be removed again, once a new release was built.
2021-08-27 10:00:37 -07:00
Sebastian Rittau
9b366daaec
Explain adding new third-party stubs ( #5951 )
...
Closes : #5438
2021-08-23 20:47:54 -07:00
Sebastian Rittau
db0f37ccdf
Modernize mock stubs ( #5949 )
...
* Import from `collections.abc`, instead of `typing`.
* Replace `Text` with `str`.
* Remove version checks.
* Convert mock into a package
2021-08-23 11:53:03 -07:00