Commit Graph

894 Commits

Author SHA1 Message Date
Sebastian Rittau
8d12d6f468 Use vobject stubs in caldav (#5749) 2021-07-09 16:57:16 +03:00
Bas van Beek
5e23e2c19a Use SupportsIndex where applicable in builtins.pyi (#5739)
* Use `SupportsIndex` where applicable in `builtins.pyi`

* Remove `None` from the `int.__round__` ndigits parameter
2021-07-09 13:08:19 +03:00
kasium
c4a60ce94c Add pytest-lazyfixture stubs (#5745)
This change will add stubs for pytest-lazyfixture. It is particual useful for projects which type their tests and use pytest-lazyfixture.
The included functions and classes are the scope which can be considered documented by the module. Any other function is related to pytest hook implementations and are normally not called by an user.

Please note, that if a user uses 'pytest.lazy_fixture' these stubs will not work. As recommneded in https://github.com/TvoroG/pytest-lazy-fixture/issues/51 the package needs to imported directly.

Co-authored-by: Akuli <akuviljanen17@gmail.com>
2021-07-09 12:52:22 +03:00
Sebastian Rittau
aca5952361 Wrap vobject.win32tz in platform check (#5747) 2021-07-09 11:32:57 +02:00
Nipunn Koorapati
c5dd23ac0d Allow unicode and bytes in EnumTypeWrapper.Value (#5743) 2021-07-09 11:22:38 +02:00
Akuli
fdf073627c maybe fix stubtest (#5746)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2021-07-09 12:06:26 +03:00
Sebastian Rittau
a7446632f7 Add third-party vobject stubs (#5733) 2021-07-08 18:26:24 -07:00
Sebastian Rittau
788b20e326 Upgrade Pillow stubs for Pillow 8.3 (#5731)
* Upgrade Pillow stubs for Pillow 8.3

* stubtest: ignore PIL._tkinter_finder

* Annotate TiffTags.py

* Pillow: stubtest and various other fixes

* Remove tkinter modules from stubtest_allowlist
2021-07-08 18:22:07 -07:00
opsyne
9d5046ee7f polib: fix ordered_metadata return type (#5735)
Also update version in METADATA.toml.
2021-07-07 19:07:17 +02:00
Akuli
42247feefb use Self in async context managers (#5724) 2021-07-06 08:47:49 +02:00
Peter Pentchev
ff2b92f340 pathlib2: most of the methods support the "unicode" type. (#5727)
Closes: #5726
2021-07-05 12:47:18 +02:00
Sebastian Rittau
1cffceb767 Add httplib2 third-party stubs (#5713) 2021-06-30 07:54:02 -07:00
Sebastian Rittau
2b35ea5f91 Add caldav third-party stubs (#5684)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2021-06-30 16:28:40 +02:00
Sebastian Rittau
40b127d46a Add third-party commonmark stubs (#5702) 2021-06-30 07:19:43 -07:00
Sebastian Rittau
f260ea2383 Add html5lib third-party stubs (#5701) 2021-06-29 21:15:59 -07:00
Jake Bailey
bb981bd726 Merge last of PIL stubs from Pylance (#5706)
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2021-06-29 21:05:04 -07:00
Jake Bailey
6b8f047b05 Update some PIL stubs (#5692)
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Co-authored-by: Akuli <akuviljanen17@gmail.com>
2021-06-28 10:29:17 -07:00
Bas van Beek
50f5858a56 Use SupportsIndex where applicable for 5 classes (#5694)
Use `SupportsIndex` where applicable:

* `str`
* `bytes`
* `bytearray`
* `memoryview`
* `markupsafe.Markup`
2021-06-26 19:05:40 +03:00
JHeilCoveo
64c85cdd44 Fix cachetools decorators (#5690) 2021-06-25 08:45:42 -07:00
Maximilian Hils
f58c9c7e7d Extend pyOpenSSL stubs (#5687) 2021-06-24 12:21:05 +02:00
Sebastian Rittau
bda76bb7d8 Re-add python2 keys to METADATA temporarily (#5686) 2021-06-24 00:48:05 +02:00
Sebastian Rittau
68dc2d132b Move Python 2-only stubs to @python2 directory (#5660) 2021-06-21 11:28:25 -07:00
Sebastian Rittau
a319ba4604 pkg_resources is part of setuptools (#5669) 2021-06-21 15:19:18 +01:00
Sebastian Rittau
b1ef60c9d5 Update a few stub versions (#5670) 2021-06-21 07:15:00 -07:00
nzig
679ddde66e Add replace parameter for redis restore (#5668) 2021-06-21 09:50:06 +02:00
Sebastian Rittau
9ec2f87124 Copy args from json.loads() to requests.Response.json() (#5664) 2021-06-20 07:21:20 -07:00
nzig
962a6fd387 Add replace parameter for redis restore (#5662)
Co-authored-by: Nadav Zingerman <nadav@medigate.io>
2021-06-20 14:01:03 +02:00
Sebastian Rittau
bc2ec748f6 Move routes stubs to @python2 directory (#5637)
* Move routes stubs to @python2 directory

* Ignore Python-2-only stubs for stubtest

* Use standard idiom for re-exporting items

Co-authored-by: Akuli <akuviljanen17@gmail.com>
2021-06-18 17:05:23 +03:00
Vasily Zakharov
4d981f87e3 FixpyOpenSSL stubs to pass stubtest (#5657)
* Fix missing default arguments.
* Fix wrong argument names.
* Add constructor to `_EllipticCurve` and remove `name`.
2021-06-17 23:02:35 +02:00
Akuli
c5b59b9e41 Pymysql cursor types and fetching return types (#5652)
version update: stubs made based on pymysql 1.0.2
2021-06-17 20:53:22 +02:00
Sebastian Rittau
64f463172b bleach: Loosen attribute dict type (#5651)
Closes: #5650
2021-06-17 12:53:16 +02:00
Akuli
515aa6fa3d pymysql: query arguments can be any value (#5653) 2021-06-17 11:02:37 +02:00
Sebastian Rittau
a98fceca2f Rename openssl-python to pyOpenSSL (#5649)
Remove stubtest allowlist

Set package version
2021-06-16 08:22:45 -07:00
Vasily Zakharov
ff75793531 Improve OpenSSL stubs (#5645)
* Support Python 3.
* Add OpenSSL.SSL.
* Extend OpenSSL.crypto.

Co-authored-by: Vasily Zakharov <v.zakharov@wwpass.com>
2021-06-16 16:54:30 +02:00
Oleg Höfling
725b5ef71b Loosen mapping as input type in mapping representer (#5644)
Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>
2021-06-16 12:05:43 +02:00
Oleg Höfling
5a1dbf7cee loosen type restrictions for mapping representer input (#5640)
Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>
2021-06-15 15:35:12 +02:00
Marius Gedminas
524947dbdc Fix incorrect markupsafe.Markup return types (#5638)
Closes #5632.
2021-06-15 10:02:33 +02:00
Oleg Höfling
03809dc604 Add type hints for representer registration functions (#5636)
bump version to the current major release of PyYAML

Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>
2021-06-14 17:53:59 +02:00
Oleg Höfling
b65fa0ed52 Add stubs for yaml.nodes and yaml.representer (py3) (#5634)
Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>
2021-06-14 16:13:45 +02:00
Sebastian Rittau
4c3e3a68a6 Update bleach stubs (#5631) 2021-06-14 06:50:51 -07:00
Sebastian Rittau
beb6891a3b Fix imports in paramiko (#5606) 2021-06-13 12:41:58 -07:00
Sebastian Rittau
d3ba8a3858 Pillow: fix errors found by stubtest (#5629)
* Update Pillow stubtest allowlist

* Update cryptography allowlist
2021-06-13 15:15:51 +03:00
Oleg Höfling
0744d8c30a Add stubs for yaml.error (#5627)
* type yaml.error
2021-06-13 15:13:42 +03:00
Sebastian Rittau
a3a355433d Add missing Pillow stubs (#5626)
These were generated with stubgen and then slightly hand edited, mostly
by fixing imports and a few other bits and bobs.
2021-06-12 18:38:59 -07:00
Shantanu
7244ea1f71 Test third party stubs with stubtest (#5615) 2021-06-13 00:17:40 +02:00
Sebastian Rittau
f28100af19 Mark cryptography as obsolete (#5619)
Bump version to 3.3 (last version before Python 2 removal)
2021-06-12 10:51:53 +03:00
Jelle Zijlstra
967d0b2167 Add self type to requests.Session.__enter__ (#5620)
Fixes microsoft/pyright#1976
2021-06-11 16:48:48 +02:00
Sebastian Rittau
6a6d5d8fd2 Fix zincrby argument order (#5608) 2021-06-09 21:16:34 +03:00
Sebastian Rittau
5d811e18b5 Add rudimentary Pillow stubs (#5594)
* Add rudimentary Pillow stubs

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2021-06-09 17:36:46 +03:00
Sebastian Rittau
67a2ed7dd7 Fix PyJWT package name (#5604)
The "jwt" package on PyPI is actually a different, incompatible package,
called python-jwt. Fix the name, so that the package name is corrected
from types-jwt to types-PyJWT, matching the upstream name.
2021-06-09 16:36:27 +02:00