Akuli
b0ef85288d
flake8: do not exclude @python2 dirs ( #5457 )
2021-05-15 12:05:26 +02:00
Christopher Dignam
3aa4c67839
simplify vector type for Annoy ( #5455 )
...
Sequence was unnecessarily specific and prevents numpy type stubs from working with this package. Numpy ndarray isn't compatible with Sequence since it doesn't have __reversed__ method.
2021-05-15 02:29:31 +02:00
Akuli
15b0959cf8
stdlib/@python2: clean imports ( #5453 )
2021-05-15 01:08:37 +02:00
Akuli
5ec4f06263
clean python 3 specific stuff from stdlib/@python2 stubs ( #5451 )
2021-05-15 00:19:05 +02:00
Sebastian Rittau
f94d838814
Fix primer comment permissions ( #5452 )
2021-05-15 00:15:55 +02:00
Jelle Zijlstra
a47ee3245a
fix renamed Python 2 modules ( #5450 )
2021-05-14 14:36:00 -07:00
Akuli
5afd250792
mypy_primer: use 'needs: mypy_primer' for comment job ( #5428 )
2021-05-14 22:28:34 +03:00
Sebastian Rittau
5b739e0ccb
Split stdlib into Python 2 and 3 versions ( #5442 )
...
All new files in stdlib/@python2 are straight copies of the
corresponding files in stdlib.
2021-05-14 12:04:12 -07:00
Sebastian Rittau
8971c242cb
Remove migration script; migration has happened ( #5446 )
...
* Remove migration script; migration has happened
2021-05-14 19:33:57 +03:00
Jukka Lehtosalo
17bc1d83ea
Don't import enum in Python 2 stubs ( #5445 )
...
Python 2.7 doesn't have enum in the stdlib, in particular, so we
shouldn't import it.
2021-05-14 15:29:54 +02:00
Sebastian Rittau
322396bb32
configparser available since Python 3.0 ( #5443 )
...
It was called ConfigParser in Python 2.
Split out from #5442 .
2021-05-14 05:24:50 -07:00
Kaleb Barrett
2be836bf6d
Add yaml.UnsafeLoader ( #5441 )
2021-05-13 18:24:23 -07:00
hatal175
b8e5f637b9
Stubtest fixes ( #5391 )
2021-05-13 18:20:55 -07:00
Viktor Roytman
bbe7e5ef11
Add should_strip_auth to requests SessionRedirectMixin ( #5439 )
2021-05-13 20:58:43 +02:00
Sebastian Rittau
3ba35f3552
Split the tests section, extend ToC ( #5433 )
...
Move and consolidate venv setup and running isort/black/flake8 into
separate sections and link those sections from the ToC. Also extend
those sections slightly.
Move the tests section into a separate file.
Make venv name in pre-commit match name in CONTRIBUTING.
2021-05-13 15:41:04 +02:00
Sebastian Rittau
d98fdd934c
Move VERSIONS description to file itself ( #5434 )
2021-05-13 06:14:44 -07:00
Sebastian Rittau
a34e5a36a8
Describe third-party removal process ( #5435 )
2021-05-13 06:08:55 -07:00
Sebastian Rittau
1b188921fd
Move code of conduct to separate file ( #5432 )
...
The file CODE_OF_CONDUCT.md is the standard location for it and
is treated specially by GitHub, for example by linking to it directly
when opening issues and PRs.
2021-05-13 06:04:31 -07:00
n0ob404
7a9b4f93ba
Add stubs for redis Redis and Pipeline methods ( #5415 )
2021-05-13 09:53:26 +02:00
github-actions[bot]
15e31fe54b
Remove unused stubtest whitelist entries ( #5431 )
2021-05-12 22:22:32 -07:00
Jelle Zijlstra
33bdde6ec4
Update maintainers list ( #5430 )
...
I removed a few people who have not been active in the typing area for a long time, and added @rchen152 who is active on the repo and has commit rights. There are a few other people who have access to the repo but are not active. Listing them here does not seem useful.
2021-05-12 17:16:09 -07:00
Sebastian Rittau
b1577ad1cb
Rework README and CONTRIBUTING ( #5429 )
...
This shuffles sections around between README.md and CONTRIBUTING.md. CONTRIBUTING now contains information pertaining to opening PRs, README all other information. I have also moved the list of maintainers to a separate file.
I have kept most information intact for now, with two main exceptions:
I removed duplicated information.
For brevity's sake, I trimmed some explanations from the section about version checks.
I have restructured the CONTRIBUTING file to follow the order of the introductory "contribution process at a glance" section. This now serves as a bit of a table of contents.
Closes : #5422
2021-05-12 16:25:47 -07:00
Sebastian Rittau
2f30adad19
Remove two files from pytype's exclude list ( #5427 )
2021-05-12 11:58:48 -07:00
Sebastian Rittau
3db20f09ca
pyjwt includes annotations since version 2.0.0 ( #5426 )
...
Relates to #4856
2021-05-12 19:57:48 +03:00
Sebastian Rittau
6a4583d0a8
Deprecate pallets stubs ( #5424 )
...
Part of #5423
* Support new metadata fields in check_consistent
2021-05-12 19:17:42 +03:00
Akuli
ceb308d402
run pytype_test in python 3.9 ( #5425 )
2021-05-12 19:13:01 +03:00
Sebastian Rittau
7372952e29
Upgrade pyptype ( #5420 )
2021-05-12 07:12:03 -07:00
Shantanu
6bb1d885c6
time: fix constants availability ( #5419 )
2021-05-12 08:35:39 +02:00
github-actions[bot]
a2d5f72e8a
Remove unused stubtest whitelist entries ( #5418 )
...
Co-authored-by: hauntsaninja <hauntsaninja@users.noreply.github.com >
2021-05-11 22:25:19 -07:00
Shantanu
4df940f96d
Update allowlists ( #5417 )
...
Co-authored-by: hauntsaninja <>
2021-05-11 22:11:48 -07:00
Jelle Zijlstra
e14085014f
more thorough documentation for VERSIONS ( #5395 )
2021-05-11 06:56:14 -07:00
spaghEddieDoyle
4c72f7f268
Add some missing logging features ( #5388 )
2021-05-11 10:52:40 +02:00
Shantanu
dd73f117f0
os: fix positional-only args ( #5412 )
...
Co-authored-by: hauntsaninja <>
2021-05-11 10:47:12 +02:00
Shantanu
a30ef0db04
pwd: fix positional-only args ( #5413 )
...
Co-authored-by: hauntsaninja <>
2021-05-11 10:46:26 +02: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
Shantanu
a91c89ea94
various path stubs: re-export to reduce duplication ( #5382 )
...
Co-authored-by: hauntsaninja <>
Co-authored-by: Akuli <akuviljanen17@gmail.com >
2021-05-10 22:27:13 -07:00
Shantanu
0ac3531a93
Update allowlists ( #5409 )
...
Co-authored-by: hauntsaninja <>
2021-05-10 22:19:31 -07:00
Shantanu
482d38044b
statistics: update for py310 ( #5291 )
2021-05-10 15:12:06 -07: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
Akuli
24532a101e
readme: delete old mypy submodule stuff ( #5399 )
2021-05-10 07:56:26 -07: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
Sebastian Rittau
1eb64b4372
Mark stdlib modules with upper version bounds ( #5394 )
...
* Mark stdlib modules with upper version bounds
* Add minus to all versions and enforce in check_consistent
* Fix check_consistent and mypy_test to work with new VERSIONS format
2021-05-10 16:29:43 +03:00
Akuli
5e907afac7
non-string fieldnames for csv.DictReader and csv.DictWriter ( #5366 )
2021-05-10 13:44:24 +02:00
Adrian Freund
a2058829fa
Make memoryview inherit from Sequence ( #5393 )
2021-05-10 12:46:17 +02:00
spaghEddieDoyle
740f672450
Fix typo in README ( #5389 )
2021-05-09 17:00:15 -07:00