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
Eric Traut
94a7a62c65
Removed imported symbols that are not accessed or re-exported from within third_party stubs (part 1). These were all identified as unused symbols by the pyright type checker and language server. ( #4388 )
...
Co-authored-by: Eric Traut <erictr@microsoft.com >
2020-08-05 18:49:35 -07:00
Igor Nehoroshev
8ae5549b61
Add stub for typing_extensions.get_args ( #4373 )
2020-08-03 12:49:18 -07:00
Jaromir Latal
c96b1ae1bf
[stdlib][unittest] Fix mock.call(...) types ( #4374 )
...
Co-authored-by: Jaromir Latal <jaro@fb.com >
2020-07-30 22:02:08 +02:00
Sebastian Rittau
06f87e5c92
Simplify pathlib ( #4357 )
...
* Enable some branches for Python2 pathlib2
* Define an alias _PathLike, instead of using multiple branches
* Drop a Python 3.4 branch (the Python 2 branch is identical to
the 3.5+ branch)
* Move Path.__new__ to the top
2020-07-27 06:08:09 -07:00
Sebastian Rittau
cfd06e2d3c
Enable aliases in pytest_mock ( #4359 )
...
* Require newer pytype
2020-07-25 12:13:00 -07:00
Shannon Zhu
b45e6cfbf6
Make TypeAlias stub a valid annotation ( #4354 )
2020-07-22 17:31:21 -07:00
Jaromir Latal
09718c6a03
[requests] Add _content to Response ( #4353 )
...
Co-authored-by: Jaromir Latal <jaro@fb.com >
2020-07-22 17:46:51 +02:00
Sabby6
42d20c4a07
pkg_resources: Add missing methods of pkg_resources.DistributionNotFound ( #4344 )
2020-07-20 19:31:50 +02:00
Magnus Watn
12f93797ff
Change dotted_string from method to str ( #4335 )
2020-07-17 15:02:52 +02:00
Sebastian Rittau
5e76f51930
Upgrade to isort 5 ( #4323 )
...
This now also reformats imports not at the top of files.
2020-07-16 07:01:57 -07:00
Andre Delfino
1e0e40f61c
Use Mapping for requests _Data ( #4327 )
2020-07-13 14:00:52 +02:00
Sebastian Rittau
209b6bb127
Remove tornado stubs ( #4321 )
...
Current tornado releases feature inline annotations and ship with
a py.typed file.
2020-07-09 07:20:11 -07:00
Jonathan Slenders
8e69672587
Fix for cryptography Extensions.get_extension_for_class. ( #4320 )
...
Co-authored-by: Jonathan Slenders <jslender@cisco.com >
2020-07-09 11:25:02 +02:00
Matan Gover
c64ecf5808
Flask.root_path cannot be None ( #4319 )
...
Extension of #2792 (see #2791 ). See [implementation](4e854ee496/src/flask/helpers.py (L959) ).
2020-07-08 17:41:11 -07:00
Jürgen Gmach
92f91ddfe8
Add typing for werkzeug.utils.secure_filename ( #4308 )
2020-07-03 15:08:03 +02:00
Julian Mehnle
6d1c59d238
pymysql.err.Warning multiple-inherits from builtins.Warning and MySQLError. (#4303 )
...
Previously we declared it as single-inheriting from only `MySQLError`.
2020-07-02 19:53:38 -07:00
John Snow
f26a82436c
requests: add type hint for Session.send() ( #4302 )
...
This takes a PreparedRequest and returns a Response.
See https://github.com/psf/requests/blob/master/requests/sessions.py#L614
2020-07-01 15:31:37 -07:00
Federico Bond
4225ab2496
Export requests.utils module ( #4301 )
2020-07-01 10:55:55 -07:00
Christine
8cf3cd398e
[redis] Update hset signature to include mapping kwarg ( #4293 )
2020-06-30 09:41:01 +02:00
Nipunn Koorapati
ad8fd9dba7
Add typing for google protobuf mapping containers ( #4265 )
2020-06-30 09:37:50 +02:00
Sebastian Rittau
6bffc6534b
Add nmap type information ( #4292 )
...
Author: Philipp Hahn <hahn@univention.de >
Co-authored-by: Philipp Hahn <hahn@univention.de >
2020-06-29 18:52:41 +02:00