Shantanu
cb6549fa8f
markdown: add more stubs ( #4574 )
...
Co-authored-by: hauntsaninja <>
2020-09-25 22:29:21 +02:00
Sebastian Rittau
0cd7dd7009
Fix _patch.__call__() ( #4568 )
...
_patch.call() reused the type variable _T, which is generic over
_patch. It was meant to use a separate type variable for the argument,
which is returned.
Fixes #4566
2020-09-23 14:35:19 -07:00
Sebastian Rittau
3d3dee91a3
Use overloads for Redis.sort() ( #4551 )
2020-09-21 20:54:46 +02:00
Rajiv Bakulesh Shah
3f53989529
Add more stubs for redis-py ( #4557 )
2020-09-21 15:38:59 +02:00
Sebastian Rittau
f14d6eaa89
Improve unittest.mock.patch() types ( #4277 )
2020-09-21 15:26:39 +02:00
Adam Dangoor
ec62f5f772
Allow Flask.Response.default_mimetype to be None ( #4563 )
2020-09-21 14:36:05 +02:00
turettn
f1929d9e5a
cachetools: fix caching decorators return type ( #4556 )
2020-09-21 14:15:29 +02:00
Rajiv Bakulesh Shah
98667b18c2
Add more stubs for redis-py ( #4480 )
2020-09-17 16:25:16 +02:00
Omar Sandoval
7409af9f79
Add SupportsIndex stub to typing_extensions ( #4442 )
...
This was added to typing_extensions in python/typing#724 .
2020-09-15 21:14:00 +02:00
Hugues
81d067618c
protobuf: add serialized_options kwarg ( #4531 )
2020-09-14 12:59:22 +02:00
kylec1
59586848c9
yaml: Update load methods to use Text rather than str ( #4533 )
...
Yaml loading accepts bytes and unicode, either directly or via IO.
For python 3, bytes and str work fine, but for Python 2 code this is redundant and limited.
Text instead of str should make type checks more accurate.
2020-09-11 18:37:05 -07:00
Lam Son Ho
04f7d7a2fd
add stubs for frozendict ( #4522 )
2020-09-11 10:36:57 +02:00
jack1142
28a88adf0b
Update emoji stubs ( #4516 )
2020-09-08 20:24:32 +02:00
Sam Bull
ea52d0b0a0
Fix werkzeug set_cookie(). ( #4509 )
2020-09-01 09:08:07 -07:00
Shantanu
48c8939ce6
concurrent.futures: update for py39, minor fixes ( #4503 )
...
Note the new parameter doesn't actually exist on the base class, even
though it's documented as that being the case. Asked about it in https://bugs.python.org/issue39349
Co-authored-by: hauntsaninja <>
2020-08-31 22:04:49 +02:00
Sebastian Rittau
3c20675813
Remove pytest_mock ( #4478 )
...
pytest-mock is now type annotated, which makes typeshed's annotations
obsolete. See pytest-dev/pytest-mock#152 .
2020-08-29 14:47:34 -07:00
Jukka Lehtosalo
5be9c91518
freezegun: Fix __exit__ and remove union return types ( #4491 )
...
These caused false positives, for example in code like this:
```
with freeze_time(None) as ft: # False positive here
ft.tick(3) # False positive here
```
2020-08-28 16:50:05 +01:00
Jukka Lehtosalo
3e966524b7
Add back six.moves.cStringIO (Python 3) ( #4490 )
...
This was accidentally removed in #4287 .
2020-08-28 16:49:56 +01:00
Jelle Zijlstra
5f9fd3d127
upgrade black version ( #4486 )
...
Manually removed a number of trailing commas to prevent black from unnecessarily
exploding some collections.
2020-08-26 18:36:01 +02:00
Cerek Hillen
142aed3838
type annotation for Timestamp and Duration ( #4471 )
2020-08-25 23:29:34 -07:00
Jukka Lehtosalo
ab0f5519a9
Add back six.moves.range (Python 3) ( #4481 )
...
This was accidentally removed in #4287 .
2020-08-25 16:42:15 +01:00
David Hotham
8bb80c4cb7
pyVmomi stubs are incomplete ( #4474 )
2020-08-22 11:13:09 -07:00
Shantanu
723fcb368a
pathlib.Path.open: bring on the overloads ( #4407 )
2020-08-21 20:36:43 -07:00
Eric Traut
8cbf009bb7
Added some missing type annotations within third-party stub files ( #4467 )
...
Co-authored-by: Eric Traut <erictr@microsoft.com >
2020-08-21 00:51:15 +02:00
Eric Traut
52e18e856c
Added stubs for aiofiles package ( #4421 )
2020-08-19 08:33:33 -07:00
Shantanu
3be7918eb2
deprecated: support use as decorator ( #4449 )
...
As opposed to just a decorator factory
Co-authored-by: hauntsaninja <>
2020-08-15 21:25:13 -07:00
Eric Traut
e2d335b6ef
Contributed stubs for "retry" package ( #4428 )
...
Co-authored-by: Eric Traut <erictr@microsoft.com >
Co-authored-by: hauntsaninja <>
2020-08-15 18:29:15 -07:00
Toru Ogawa
7643f1e16c
Add unsafe_ functions to yaml ( #4440 )
...
Close #4439
2020-08-12 15:25:26 +02:00
Sebastian Kreft
3bd5471744
fix: add get_origin to typing_extensions ( #4438 )
...
Fixes #4430
2020-08-11 13:45:54 -07:00
Eric Traut
0ee7b26ce1
Contributed stubs for slugify package ( #4429 )
...
Co-authored-by: Eric Traut <erictr@microsoft.com >
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com >
2020-08-10 13:34:47 -07:00
Eric Traut
9a4df32d86
Contributed stubs for cachetools package ( #4422 )
...
Co-authored-by: Eric Traut <erictr@microsoft.com >
Co-authored-by: hauntsaninja <>
2020-08-10 13:34:22 -07:00
Eric Traut
224da619f5
Contributed stubs for markdown package ( #4426 )
...
Co-authored-by: Eric Traut <erictr@microsoft.com >
Co-authored-by: hauntsaninja <>
2020-08-10 13:33:31 -07:00
Eric Traut
cac35d0631
Contributed stubs for freezegun package ( #4425 )
...
Co-authored-by: Eric Traut <erictr@microsoft.com >
2020-08-10 13:33:09 -07:00
Eric Traut
4b9de7752e
Contributed stubs for filelock package ( #4424 )
...
Co-authored-by: Eric Traut <erictr@microsoft.com >
2020-08-10 13:32:51 -07:00
Eric Traut
03a333871a
Added stubs for deprecated package ( #4423 )
...
Co-authored-by: Eric Traut <erictr@microsoft.com >
2020-08-10 13:32:35 -07:00
Eric Traut
f46fb7ff59
Added some missing type annotations in stdlib stubs. ( #4418 )
...
Co-authored-by: Eric Traut <erictr@microsoft.com >
2020-08-08 20:49:37 +02:00
Eric Traut
030e5ad1dd
Added missing type annotations for itsdangerous. ( #4416 )
...
Co-authored-by: Eric Traut <erictr@microsoft.com >
2020-08-08 20:48:22 +02:00
Eric Traut
adcd691d93
Added missing type annotations in gflags.pyi; removed some functions and methods that no longer exist in the library. ( #4417 )
...
Co-authored-by: Eric Traut <erictr@microsoft.com >
2020-08-08 11:34:46 +02:00
Eric Traut
2fa7a8d8c3
Added missing type annotations for mock.pyi. ( #4415 )
...
Co-authored-by: Eric Traut <erictr@microsoft.com >
2020-08-08 11:33:01 +02:00
Jukka Lehtosalo
199b262f63
Add back six.moves.urllib.parse.unquote (Python 2) ( #4414 )
...
This was accidentally removed in #4287 .
2020-08-07 17:56:54 +01:00
Jukka Lehtosalo
57a1a3937a
Add back six.StringIO (Python 2) ( #4413 )
...
This was accidentally removed in #4287 .
2020-08-07 17:41:48 +01:00
Jukka Lehtosalo
7c444365f2
Add back six.moves.range (Python 2) ( #4411 )
...
This was accidentally removed in #4287 .
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
2020-08-07 17:20:34 +01:00
Jukka Lehtosalo
29c71ff52a
Add back tornado stubs for Python 2 only ( #4412 )
...
Tornado ships with inline annotations, but it no longer is Python 2
compatible. I think that it makes sense to keep the legacy stubs for
Python 2 compatibility, at least for a while longer.
This restores stubs removed in #4321 , but moves them to
`third_party/2`.
2020-08-07 08:54:57 -07:00
Anders Kaseorg
bb685daad1
Update orjson.pyi from upstream ( #4405 )
...
https://github.com/ijl/orjson/blob/master/orjson.pyi
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2020-08-06 19:40:26 -07:00
Eric Traut
de4ea8681d
Removed imported symbols that are not accessed or re-exported (third_party part 4 of 4) ( #4391 )
...
* Removed imported symbols that are not accessed or re-exported from within third_party stubs (part 4). These were all identified as unused symbols by the pyright type checker and language server.
Co-authored-by: Eric Traut <erictr@microsoft.com >
2020-08-06 22:11:22 +02:00
Sam Bull
cea32bdc70
Add UserAgent attributes. ( #4398 )
2020-08-06 19:08:37 +02:00
Eric Traut
0b3494f712
Replaced parameter name "self" with "cls" for a few class methods ( #4393 )
...
* Replaced parameter name "self" with "cls" for a few class methods. Pyright emits a warning if a class method doesn't follow the PEP 8 standard where the first parameter is named "cls" for a class method. This change eliminates these warnings.
* Missed a file.
Co-authored-by: Eric Traut <erictr@microsoft.com >
2020-08-06 09:09:21 +02:00
Eric Traut
e17c6a752e
Fixed base classes to avoid "Cannot create consistent method ordering" error. Like the Python interpreter, the pyright type checker reports an error when a class is defined in a way that a deterministic MRO cannot be established. This set of changes eliminates these errors. ( #4392 )
...
Co-authored-by: Eric Traut <erictr@microsoft.com >
2020-08-05 19:42:48 -07:00
Eric Traut
fe970d1134
Removed imported symbols that are not accessed or re-exported from within third_party stubs (part 3) ( #4390 )
...
These were all identified as unused symbols by the pyright type checker and language server.
Co-authored-by: Eric Traut <erictr@microsoft.com >
2020-08-05 18:51:20 -07:00
Eric Traut
b3929cbcc9
Removed imported symbols that are not accessed or re-exported from within third_party stubs (part 2). ( #4389 )
...
These were all identified as unused symbols by the pyright type checker and language server.
Co-authored-by: Eric Traut <erictr@microsoft.com >
2020-08-05 18:50:31 -07:00