Sebastian Rittau
d82d3396e7
Minor flake8 improvements ( #3324 )
...
* Update flake8-bugbear
* Remove unnecessary comment
* Add a comment about an upcoming fix
2019-10-08 17:42:36 +02:00
Sebastian Rittau
256b3ce8ab
Remove a bunch of unused imports ( #3323 )
2019-10-08 07:59:32 -07:00
Sebastian Rittau
0a426d8a8e
Move cryptography from 2 to 2and3 ( #3304 )
...
The cryptography stubs are very rudimentary at the moment, but there
is nothing that limits them to just Python 2.
Closes : #3303
2019-10-04 14:11:42 -07:00
Sebastian Rittau
c32e1e2280
Enable --disallow-any-generics for stubs ( #3288 )
2019-10-01 05:31:34 -07:00
Sebastian Rittau
ed4b1de0ad
Fix third_party errors with --disallow-any-generics ( #3278 )
...
Part of #3267 . Together with #3276 this should fix all such problems.
2019-09-30 13:14:01 +02:00
Sebastian Rittau
23232c056c
Simplify Travis-CI configuration ( #3220 )
...
This removes the indirection of setting environment variables to
install and run tests. Also, use an explicit version for running
mypy with typed-ast.
2019-09-30 11:46:12 +02:00
Sebastian Rittau
c9f19b1d72
Use protocol for FTP.stor* ( #3227 )
...
* Use protocol for FTP.stor*
* Reformat ftplib.pyi with black
2019-09-10 14:40:10 -07:00
Sebastian Rittau
efb4af0108
Mark some types as non-hashable ( #3219 )
...
Based on @JelleZijlstra's PR #2221 .
Fixes #2148
2019-09-04 17:38:09 +02:00
Sebastian Rittau
ae881faaf1
Remove custom _Text type ( #3211 )
...
* Remove custom _Text type
Since the custom type was only used in argument types, it was
effectively only an alias for typing.Text.
* Run requests/api.pyi through black
2019-08-29 08:51:59 -07:00
Sebastian Rittau
628eee29f7
Use Literal in a few more places ( #3176 )
2019-08-10 13:08:18 -07:00
Sebastian Rittau
c579f91077
Improve werkzeug exceptions slightly ( #3178 )
...
* Use Text for HTTPException.description
* Add Unauthorized.www_authenticate
* Remove wrong get_headers() overrides
2019-08-09 20:05:56 +02:00
Sebastian Rittau
3f6cec9872
Fix Match.group problems ( #3172 )
...
* group() may return None values
* group() allows to mix int and str arguments
* Use concrete return type
* Merge overloads
2019-08-08 16:59:20 +02:00
Sebastian Rittau
9ccf9356bf
Remove Python 3.4 support ( #3147 )
...
Closes #3123
2019-07-27 10:58:21 +02:00
Sebastian Rittau
b20e5b6c14
Travis: run mypy with Python 3.8 as well ( #3146 )
...
This runs mypy both with Python 3.7 and 3.8. In Python 3.8,
mypy switched from using typed-ast to using Python's built-in ast.
This patch ensures that both are tested.
2019-07-25 07:43:52 -07:00
Sebastian Rittau
0177dedc42
Add werkzeug.middleware ( #3103 )
...
HTTPConnection.timeout can be a float
2019-07-24 08:51:55 -07:00
Sebastian Rittau
dad16f2d43
Update socket exceptions ( #3127 )
...
* error is an alias for OSError in Python 3
* herror and gaierror can be constructed without arguments (tested
in Python 2.7 and 3.7)
* timeout uses the same arguments as herror and gaierror
2019-07-18 16:50:28 -07:00
Sebastian Rittau
09d1055cd3
Remove mypy new analyzer tests ( #3128 )
...
Now that the new analyzer is the default, this does exactly the same
as the normal mypy self test.
2019-07-18 17:02:12 +02:00
Sebastian Rittau
1436cfdef9
Add types to FileStorage ( #3067 )
2019-07-04 12:58:51 -07:00
Sebastian Rittau
b9101e9c5e
Add a few Redis types ( #3016 )
...
* StrictRedis is an alias for Redis in current redis
* Add a few types
* Add missing import
* Add missing argument and types
2019-06-12 09:18:48 -07:00
Sebastian Rittau
0e5b3770f8
Add a "pull requests welcome" batch ( #3033 )
...
We get quite a few bug reports where after a maintainer writes
"Pull Requests Welcome" we get a PR by the submitter. Maybe this
badge will help a bit to encourage people directly submit PRs,
reducing maintainer workload.
2019-06-05 07:51:01 -07:00
Sebastian Rittau
260369e6e7
Use typing.Text for argument types ( #3000 )
...
Also, use just str for argument types in Python 3+ branches.
2019-05-21 19:53:47 -07:00
Sebastian Rittau
bd10d8aad4
Add @typing.type_check_only ( #2679 )
...
Cf. python/typing#597
2019-04-12 15:32:22 -07:00
Sebastian Rittau
26fefcc704
Use protocol for print() file argument ( #2848 )
...
Also, use object instead of Any for values list
2019-03-12 19:26:32 -07:00
Sebastian Rittau
6f00053511
Add stubs for bleach ( #2709 )
...
* Add stubs for bleach
* Support Python 2 for bleach
* Add missing imports
2019-03-10 21:08:46 -07:00
Sebastian Rittau
0989d9507e
Fix groupby with key=None ( #2794 )
...
Cf #2790
2019-02-13 08:45:24 -08:00
Sebastian Rittau
eb1788ac39
Merge Python 2 and 3 builtins.pyi ( #2533 )
2018-12-21 07:12:41 -08:00
Sebastian Rittau
53d8756214
Guidelines for incomplete stubs ( #2661 )
...
* Remove the guideline to use any for preliminary stubs
Closes #2648
2018-12-04 19:20:13 +01:00
Sebastian Rittau
4fb22f61e4
Reference black, split long functions ( #2651 )
...
Closes #2598
2018-12-01 22:45:10 +01:00
Sebastian Rittau
ece96777a7
Re-export pyexpat instead of using check_consistency ( #2649 )
2018-11-29 07:29:59 -08:00
Sebastian Rittau
517d2b6012
Remove unneeded ignores ( #2624 )
2018-11-23 09:51:44 -08:00
Sebastian Rittau
8c8dc5658f
sudo is not required anymore ( #2618 )
2018-11-22 22:17:20 -08:00
Sebastian Rittau
36671663cc
Accept upstream stubs when receiving no response ( #2608 )
...
Also, don't explicitly ask for people to ask for missing packages.
Closes #2573
2018-11-20 17:59:46 +01:00
Sebastian Rittau
82c59a7fc2
Merge Python 2 and 3 versions of itsdangerous ( #2564 )
2018-11-20 17:55:16 +01:00
Sebastian Rittau
cd75801aa5
Replace non-ellipsis default arguments ( #2550 )
2018-11-20 07:35:06 -08:00
Sebastian Rittau
b77da551d9
Remove label descriptions from CONTRIBUTING ( #2572 )
...
Closes #2562
2018-10-31 09:22:52 -07: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
Sebastian Rittau
0730fe5fcb
Fix return of patch() and patch.multiple() ( #2520 )
...
* Fix return of patch() and patch.multiple()
* Update third party mock as well
2018-10-25 20:55:11 -07:00
Sebastian Rittau
006a79220f
Flake8 fixes ( #2549 )
...
* Fix over-indented continuation lines
* Fix under-indented continuation lines
* Fix whitespace around default operator problems
* Limit line lengths
* Fix inconsistent files
2018-10-24 07:20:53 -07:00
Sebastian Rittau
680d69bd81
Update to flake8 3.6.0 ( #2547 )
...
* Update to flake8 3.6.0
* Configure line length and move to 'nice to have'
* Also update flake8-bugbear and pin flake8-pyi
2018-10-24 05:53:33 -07:00
Sebastian Rittau
c4f4c40601
Annotate jwt.algorithms ( #2532 )
...
Cf. #1446
2018-10-23 09:32:14 -07:00
Sebastian Rittau
6d6894e1ef
Annotate werkzeug wrap_file() and FileWrapper ( #2519 )
...
* Add FileWrapper protocol to wsgiref.types
* Annotate werkzeug's wrap_file and FileWrapper
* Remove empty line at end of file
* Fix _Readable protocols
2018-10-23 13:43:53 +02:00
Sebastian Rittau
48fc8d6d82
Rework .travis.yml and run with Python 3.7 where possible ( #2536 )
2018-10-23 13:19:25 +02:00
Sebastian Rittau
f07bdf418b
Fix pytype test output ( #2534 )
2018-10-22 09:14:22 +02:00
Sebastian Rittau
2d3edbd348
Slightly improve annotation of tkinter.Tk ( #2498 )
...
Closes : #1767
2018-10-01 20:15:22 -07:00
Sebastian Rittau
7be20fcf91
Return Any, not Union from IP parsing functions ( #2499 )
...
Closes : #2080
2018-10-01 08:48:39 -07:00
Sebastian Rittau
9f98737119
weakproxy fixes ( #2450 )
...
* The callback argument to ref() and proxy() is optional, per documentation
* proxy() returns a ProxyType or CallableProxyType
Closes #1627
2018-09-25 20:23:02 -07:00
Sebastian Rittau
ea2122741f
os.path.exists (Py 3) accepts a file descriptor ( #2451 )
...
Closes #1653
2018-09-24 07:53:44 -07:00