Nikita Sobolev
392c81d767
Switch from toml to tomli ( #6023 )
2021-09-10 15:48:15 +02: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
HunterAP23
ffaa0ea3d1
Added initial rework of the concurrent.futures module ( #5646 )
...
* Added initial rework of the concurrent.futures module
* Minor fixes
* Fixed some generics & changed to collections over typing for some types
* Switched thread to use queues instead of multiprocessing.queues
* More fixes
* More fixes following results from running tests locally
* Tmp commit of changes
* Minor flake8 fix
* Fixing some issues
* Fixed a weakref.ref issue
* Fixed one more weakref issue
* Fixed some issues with required version
* Fixed more python min version requirements
* More min version fixes
* Fixed misc error in workflow regarded outdated pip
* Replaced any usage of Optional and Union with proper form as described in the contributions guide
* Fixed issue with using Callable definition
* Fixed last seen issues as per review
* Fixed some basic issues & more proper import calls
* Update stdlib/concurrent/futures/process.pyi
Co-authored-by: Sebastian Rittau <srittau@rittau.biz >
* Update stdlib/concurrent/futures/process.pyi
Co-authored-by: Sebastian Rittau <srittau@rittau.biz >
* Minor fixes
* More minor fixes
* Fixed up some issues & cleaned up imports
* Removed usage of Union
* Changed wait method to use Set of Future to work with mypy-primer for Optuna repo
* Reverted change to wait method and DoneAndNotDoneFutures class
* Fixed DoneAndNotDoneFutures again
Co-authored-by: Akuli <akuviljanen17@gmail.com >
Co-authored-by: Sebastian Rittau <srittau@rittau.biz >
2021-09-03 13:06:48 +02: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
Shantanu
f6e4c9c38f
Check for PEP 604 usage in CI ( #5903 )
...
Since this is a common review issue and our stubs have all been
converted
Co-authored-by: hauntsaninja <>
2021-08-28 11:37:50 -07:00
Shantanu
98846a65e2
More shards for stubtest_third_party ( #5902 )
...
Co-authored-by: hauntsaninja <>
2021-08-09 13:36:54 -07:00
Eric Traut
59624ff09c
Updated pyright version to 1.1.160 ( #5857 )
...
* Updated pyright version to 1.1.160. Older versions contained a bug that prevented multiple third-party stub packages from having the same top-level module name.
* Disabled "reportUnsupportedDunderAll" diagnostic check for now.
Co-authored-by: Eric Traut <erictr@microsoft.com >
2021-08-06 09:21:57 +02:00
Sebastian Rittau
840df19501
Switch to Python 3.10.0-rc.1 in CI ( #5845 )
...
* Switch to Python 3.10.0-rc.1 in CI
* Add module argument to ForwardRef.__init__()
2021-08-04 07:14:38 -07:00
Sebastian Rittau
acc576659a
Use Python 3.10 beta 4 instead of beta 1 in CI ( #5839 )
...
Quote all Python versions to make sure they are interpreted as strings,
not floats.
2021-08-02 07:30:32 -07:00
Sebastian Rittau
eb431196fa
CI: use mypy version from requirements for primer ( #5834 )
2021-08-02 00:51:46 -07:00
Jake Bailey
96429cd4bd
Update pyright to 1.1.152 ( #5685 )
2021-06-24 00:11:33 +02:00
Shantanu
7244ea1f71
Test third party stubs with stubtest ( #5615 )
2021-06-13 00:17:40 +02:00
Shantanu
e66ceceed0
Rename whitelist to allowlist ( #5614 )
...
Resolves #4436
I want to add stubtest for third party stubs, and figured it'd be easier
to make this change now.
Co-authored-by: hauntsaninja <>
2021-06-10 14:33:44 -07:00
Jake Bailey
c4dc935b3f
Add a stricter config pass for pyright ( #5612 )
2021-06-10 20:10:12 +02:00
Sebastian Rittau
c601d5cf3d
Use stable mypy ( #5595 )
...
Use stable mypy
Pin all package versions
Don't upgrade pip itself
2021-06-09 11:27:45 +02:00
Jelle Zijlstra
e47eff31f7
bump various dependencies ( #5551 )
2021-05-29 20:05:09 +03:00
Sebastian Rittau
9795bae6f7
Remove mypy_test_suite ( #5543 )
...
Closes : #5540
2021-05-28 05:00:48 -07:00
Shantanu
05f91f73b3
Re-enable mypy test suite ( #5526 )
...
Fixes #5505 , in combination with https://github.com/python/mypy/pull/10527
Co-authored-by: hauntsaninja <>
2021-05-25 09:42:18 +01:00
Akuli
fb5387e6e4
use comment-hider v0.3.0 ( #5521 )
2021-05-23 00:42:27 +02:00
Jake Bailey
6d0b7889d3
Bump to pyright 1.1.142 ( #5515 )
2021-05-21 10:32:22 -07:00
Sebastian Rittau
8d6314b8f3
mypy test suite is broken, disable temporarily ( #5505 )
2021-05-19 19:33:57 +03:00
Sebastian Rittau
54a0bd80ee
Add a comment about _typeshed to VERSIONS ( #5447 )
2021-05-19 11:01:33 +02:00
Akuli
90e8629ed8
Add comment hider back ( #5495 )
2021-05-18 21:51:24 +02:00
Sebastian Rittau
51b7248154
Try to fix mypy_primer comment permissions ( #5478 )
...
Split the workflows again so the comment workflow has write
access to the repository.
Based on https://securitylab.github.com/research/github-actions-preventing-pwn-requests/
Co-authored-by: Akuli <akuviljanen17@gmail.com >
2021-05-17 20:32:14 +02:00
Jake Bailey
0351168b40
Bump pyright to 1.1.140 ( #5480 )
2021-05-16 19:20:18 -07:00
Sebastian Rittau
d72b1e8149
Give primer comment task all write permissions ( #5475 )
...
Cf. #5459
2021-05-16 12:26:31 -07:00
Sebastian Rittau
056981b957
Try to fix mypy_primer permissions ( #5462 )
...
Cf. #5459
2021-05-15 14:37:27 +02:00
Sebastian Rittau
f94d838814
Fix primer comment permissions ( #5452 )
2021-05-15 00:15:55 +02:00
Akuli
5afd250792
mypy_primer: use 'needs: mypy_primer' for comment job ( #5428 )
2021-05-14 22:28:34 +03:00
Akuli
ceb308d402
run pytype_test in python 3.9 ( #5425 )
2021-05-12 19:13:01 +03:00
Shantanu
f720ebb71e
Fix workflow path matching ( #5414 )
...
@Akuli was right in https://github.com/python/typeshed/pull/5407
Co-authored-by: hauntsaninja <>
2021-05-11 10:29:40 +02:00
Shantanu
d5fc9a6a80
Run stubtest_unused on Darwin ( #5410 )
...
Fixes #5405
Co-authored-by: hauntsaninja <>
2021-05-11 09:34:10 +03:00
Shantanu
5e6fb40b56
Fix stubtest unused script ( #5411 )
...
Contrary to the comment, this wasn't a mypy_primer issue, nor even a
stubtest issue.
Co-authored-by: hauntsaninja <>
2021-05-11 09:24:37 +03:00
Shantanu
ee8364c216
Only run mypy primer workflows on stdlib ( #5407 )
...
Co-authored-by: hauntsaninja <>
2021-05-11 09:21:25 +03:00
Akuli
c4d163ad42
fix stubtest-unused-whitelist permissions ( #5404 )
2021-05-10 22:19:51 +03:00
Akuli
272d70cdd2
Fix several problems in stubtest unused ( #5401 )
2021-05-10 18:50:37 +02:00
Sebastian Rittau
8787c7f496
Use newer mypy version for mypy_primer ( #5397 )
...
This will hopefully fix the mypy primer errors
2021-05-10 17:23:51 +03:00
Sebastian Rittau
5f6dbe3d3e
Limit mypy primer comment to 30000 chars ( #5396 )
...
* Limit mypy primer comment to 30000 chars
GitHub enforces a limit of 64kB
Co-authored-by: Akuli <akuviljanen17@gmail.com >
2021-05-10 16:51:58 +03:00
hatal175
244fc622e6
Add workflow stubtests for macos ( #5384 )
...
* Add macos to stubtest
* Add general darwin stubtest exception file
* Adding exceptions and platform ifs
2021-05-09 23:24:00 +03:00
Shantanu
fcdc7a8135
Use full SHA for comment hiding ( #5383 )
...
For whatever reason, looks like GA mandates full SHA
This was added in #5364
Co-authored-by: hauntsaninja <>
2021-05-08 16:52:16 -07:00
Akuli
83e875dffb
Hide old mypy_primer comments ( #5364 )
2021-05-08 15:31:08 -07:00
Shantanu
82fa8473ff
Attempt to fix stubtest unused PR opening ( #5374 )
...
Co-authored-by: hauntsaninja <>
2021-05-09 01:16:04 +03:00
Shantanu
1c76937836
Fix stubtest unused workflow ( #5372 )
...
This got broken during modular typeshed
Co-authored-by: hauntsaninja <>
2021-05-07 22:54:03 -07:00
Shantanu
4bf4d6adb6
Bump pyright ( #5357 )
...
For #5348
Co-authored-by: hauntsaninja <>
2021-05-06 15:26:24 -07:00
Sebastian Rittau
d16017ba0d
Drop mypy self test ( #5344 )
...
Closes : #5303
2021-05-06 06:55:49 -07:00
Jake Bailey
a334a29c96
Bump pyright, disable PR/commit commenting for all but one job ( #5347 )
...
* Bump pyright, disable PR/commit commenting for now
* Show comments for 3.9
* And only on Linux
2021-05-05 22:49:21 +03:00
Akuli
59390469d6
Run stubtest on python 3.10 (attempt 2) ( #5313 )
2021-05-04 11:56:51 -07:00
Shantanu
0578e47ffc
mypy_primer: reduce polling frequency ( #5322 )
...
This should cut down the API rate limiting we see when large numbers of
PRs are submitted.
Note when we used mypyc-compiled mypy in mypy_primer, this took <10m.
This is currently not the case, but hopefully will once again be.
Co-authored-by: hauntsaninja <>
2021-05-02 16:07:43 -07:00
Akuli
7dffcb5c6a
Revert "run stubtest on python 3.10 ( #5305 )" ( #5311 )
...
This reverts commit 7590506039 .
2021-05-02 12:55:26 -07:00
Akuli
7590506039
run stubtest on python 3.10 ( #5305 )
2021-05-02 17:46:17 +02:00