Shantanu
7244ea1f71
Test third party stubs with stubtest ( #5615 )
2021-06-13 00:17:40 +02:00
Sebastian Rittau
21e647a184
Document _typeshed ( #5501 )
...
* Document _typeshed
Closes : #5486
* Allow README.md files
2021-05-19 22:15:21 +03:00
Sebastian Rittau
54a0bd80ee
Add a comment about _typeshed to VERSIONS ( #5447 )
2021-05-19 11:01:33 +02:00
Sebastian Rittau
35acd2ad6f
check_consistent: allow dots in module names ( #5472 )
2021-05-16 11:01:00 -07: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
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
Ivan Levkivskyi
55549ea01f
More consistency checks for dependencies ( #4990 )
...
Closes #4988
Co-authored-by: Ivan Levkivskyi <ilevkivskyi@dropbox.com >
2021-02-01 15:16:53 +00:00
Ivan Levkivskyi
e2fd852952
Add more consistency tests ( #4983 )
...
Follow up fo #4971
Co-authored-by: Ivan Levkivskyi <ilevkivskyi@dropbox.com >
2021-01-29 17:23:35 +00:00
Ivan Levkivskyi
16ae4c6120
Re-organize directory structure ( #4971 )
...
See discussion in #2491
Co-authored-by: Ivan Levkivskyi <ilevkivskyi@dropbox.com >
2021-01-27 12:00:39 +00:00
Shantanu
48970d31de
tests / scripts: blacken and isort ( #4704 )
...
I often run black and isort in typeshed root and then have to undo these
changes.
Co-authored-by: hauntsaninja <>
2020-10-25 11:21:03 +01:00
Sebastian Rittau
5927e5ca30
Remove most consistency checks and split builtins.pyi into py2/3 files ( #4686 )
...
Split builtins.pyi in Python 2 and 3 versions
Partly addresses #4674
2020-10-22 13:39:06 -07:00
Rune Tynan
e49c156d92
Add winreg stubs ( #3794 )
2020-05-27 17:15:08 +02:00
Shantanu
baf107a158
check_consistent: print a copy-pasteable cp command ( #3992 )
2020-05-14 08:57:18 +02:00
Sebastian Rittau
92f52a2615
flake8 updates and cleanups ( #3940 )
...
* flake8 updates and cleanups
* Update to flake8 3.7.9.
* Update to flake8-bugbear 20.1.4.
* Only ignore errors in stub files.
* Remove obsolete error counts.
* Sort error codes alphabetically.
* Don't ignore the following errors (unneeded):
* E704 Multiple statements on one line (def)
* W504 Line break occurred after a binary operator
* B303 __metaclass__ used
* Remove obsolete comment
* Ignore F822 undefined name in __all__
2020-04-23 19:38:47 -07:00
Rune Tynan
85afac3bd5
Add (_)dummy_threading module, identical to threading ( #3554 )
...
* Add (_)dummy_threading module, identical to threading
* Remove unnecessary comment, add consistency check
2020-01-18 07:42:32 -08:00
Rune Tynan
b112c20dad
Copyreg stubs ( #3387 )
2019-10-29 19:52:05 -07:00
Sebastian Rittau
6507875f28
Annotate Python 3.8 removals ( #3359 )
...
* macpath
* time.clock()
* Some cgi functions
* XMLParser(html) and doctype()
* unicode_internal
* Two sqlite3 classes hidden
* fileinput bufsize arg
* Treeview.selection no longer takes arguments
2019-10-14 09:51:39 +02:00
Vasily Zakharov
57384ce033
Revised stubs for geoip2 third party library ( #3317 )
2019-10-09 19:28:42 -07:00
Guido van Rossum
95185fa9cf
Improve the explanatory comment at the top of check_consistent.py
2019-09-29 09:23:11 -07:00
Sebastian Rittau
9ccf9356bf
Remove Python 3.4 support ( #3147 )
...
Closes #3123
2019-07-27 10:58:21 +02:00
Sebastian Rittau
eb1788ac39
Merge Python 2 and 3 builtins.pyi ( #2533 )
2018-12-21 07:12:41 -08:00
Dave Halter
5c69373890
macpath, os/path, posixpath and ntpath should basically be the same files ( #2637 )
2018-12-17 15:02:18 +01:00
Sebastian Rittau
ece96777a7
Re-export pyexpat instead of using check_consistency ( #2649 )
2018-11-29 07:29:59 -08:00
Sebastian Rittau
e3a79d0ce6
Remove third_party/3/enum.py ( #2563 )
...
All Python 3 versions supported by typeshed (3.4+) have enum as part
of the standard library.
Make the third-party Python 2 version consistent with the Python 3 version.
2018-10-27 08:54:56 -07:00
stevenjackson121
80a0a75f5f
Add stubs for contextvars backport (3.5 and 3.6) ( #2378 )
...
* Add stubs for contextvars backport (3.5 and 3.6)
* Add contextvars to tests/check_consistent.py
2018-08-14 08:05:02 -07:00
Daniel Li
631d2768d6
Add stub for pathlib2 on Python 2.7 ( #2351 )
...
pathlib2 is the Python 2.7 backport of the pathlib module from Python 3.
Hence we use the same stub file for both.
The maintainer of pathlib2 granted permission for stubs to be added in
mcmtroffaes/pathlib2#44 .
2018-08-07 10:27:18 -07:00
Gary van der Merwe
c1f89a90b4
Make dataclasses available as a backported third_party library. ( #2354 )
2018-08-07 10:04:33 -07:00
Sebastian Rittau
9229dd8f0c
Merge stdlib/3.4 into stdlib/3 ( #2303 )
...
* Merge stdlib/3.4 into stdlib/3
* Move asyncio back to 3.4 for now
2018-07-03 08:13:54 -07:00
Sebastian Rittau
7ebd609643
Add pyexpat and xml.parsers ( #2276 )
2018-06-28 10:26:17 -07:00
Daniel Li
5054465746
Make concurrent.futures stubs identical ( #2237 )
...
Make the Python 2 and 3 concurrent.futures stubs identical so fixes get
applied to both.
For example, #1305 and #2233 fixed the same problem at different times,
as did #1078 and #1911 .
By making the stubs identical, we apply the fix from #1711 to Python 2.
Fixes #2234 .
2018-06-15 10:03:19 -07:00
Robert Collins
98badb6eff
Fix mock patch.dict stub and add mock stub ( #2173 )
...
The dict stub was referring to an instance, not the type, leading to
__call__ being considered when using as a decorator, rather than
__init__.
mock is a backport of the stdlib module and should be defined the same.
2018-05-31 21:45:54 -07:00
Jelle Zijlstra
b89f9553e9
keep os.path in 2 and 3 consistent ( #2152 )
...
We can't merge these because os/__init__ is still different.
Also slight refactor of tests/check_consistent.py to avoid `from os import path`.
2018-05-22 07:14:13 -07:00
Ethan Smith
e9600db2ec
Remove symlinks! ( #2132 )
2018-05-15 15:18:59 -04:00