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
Sebastian Rittau
6e153a3a4e
Bump versions of obsolete packages ( #5601 )
...
To latest version pre obsoletion
2021-06-09 07:24:38 -07:00
Sebastian Rittau
711580722b
Enable pyright for all Python 3 stubs ( #5597 )
...
* pyright: disable reportUnknownParameterType
Unknown parameter types are preferred over Any annotations for
incomplete stubs. Especially larger stubs are expected to be
incomplete for some time and it would be a shame to lose the
other pyright warnings for those stubs.
* Also disable reportUnknownVariableType
Fix problems with tkinter
* Disable reportUnknownMemberType
Fix pyright problems
2021-06-09 07:14:22 -07:00
Akuli
63fd1688c5
Delete attrs ( #5585 )
...
Closes #5581
2021-06-08 16:02:38 +02:00
Sebastian Rittau
746db19c3f
Mark attrs stubs as obsolete ( #5580 )
2021-06-06 18:17:29 +03:00
bkurtz
18cbd23b01
Click parameter declarations work with any iterable ( #5576 )
2021-06-04 22:04:52 +02:00
n0ob404
2a9f081abb
Add annotations for some redis client methods ( #5559 )
...
Add annotation for move(), persist(), pexpire(), and expireat().
2021-05-31 22:01:11 +02:00
Sebastian Rittau
6ee67483a3
Rework socket ( #5545 )
...
* Extract _socket.pyi from socket.pyi.
* Extract _socket.socket from socket.socket.
* Fix socket.family annotation.
* Annotate SocketIO properly.
* SocketType is an alias of _socket.socket.
* Sort items in socket.pyi in the same order as in socket.py.
* Remove socket.EINTR.
* Use _typeshed.WriteableBuffer instead of custom alias.
* Add errorTab (Windows only).
* Add _socket.dup().
* Mark positional-only argments.
* Remove constructors from socket exceptions.
* socket.timeout is an alias for TimeoutError, starting with Python 3.10.
* Use PEP 604 in changed lines.
* Add alias for fileno arguments.
* getaddrinfo() port can be bytes.
* Explicitly override some SSLSocket methods.
* Allow ReadableBuffer in _CMSG arguments.
2021-05-30 20:17:33 +02:00
Akshat
bb79dc9b51
markdown: Add missing attribute to Markdown stub. ( #5544 )
...
* markdown: Add missing attribute to Markdown stub.
* markdown: Add * to mark rest of arguments as keyword-only.
* markdown: Add **options
2021-05-29 20:40:07 +03:00
Maxime Arthaud
99a97195c4
mark fb303.fb303.FacebookService.Client as a context manager ( #5542 )
2021-05-28 12:08:34 +02:00
Jelle Zijlstra
620cf38152
pyaudio: don't use ClassVar[Final] ( #5498 )
2021-05-18 19:25:14 -07:00
Rich Li
901dd52ec5
Add more redis stubs for sets ( #5490 )
2021-05-18 08:39:03 +02:00
Sebastian Rittau
f0bf6eebbd
AnyStr cleanup ( #5487 )
...
* Replace all uses of StrPath, BytesPath, and AnyPath in Python 2 stubs.
* Add StrOrBytesPath as preferred alias for AnyPath.
* Replace all remaining AnyPath instances with StrOrBytesPath.
* Mark AnyPath as obsolete.
Part of #5470
2021-05-17 20:45:48 +02:00
Joseph Bylund
00fcc50d13
cachetools.Cache sizes are numerics ( #5440 )
...
replace int with float for cachesize
2021-05-17 19:14:26 +03:00
Frédéric Perrin
a0abacdeaf
Fix decorator in retry module ( #5482 )
2021-05-17 12:31:48 +02:00
Sebastian Rittau
7a9a107a63
Move IdentityFunction to _typeshed ( #5483 )
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
2021-05-17 12:04:35 +02:00
Jon Dufresne
4166a416f6
Correct return type of click.testing.CliRunner.isolation() ( #5103 )
...
The method returns a tuple of io.BytesIO objects that hold the temporary
stdin and stdout. By correcting the type, it allows usages of
io.BytesIO.getvalue() to pass type checking.
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
2021-05-16 21:45:00 +02:00
Christopher Dignam
3aa4c67839
simplify vector type for Annoy ( #5455 )
...
Sequence was unnecessarily specific and prevents numpy type stubs from working with this package. Numpy ndarray isn't compatible with Sequence since it doesn't have __reversed__ method.
2021-05-15 02:29:31 +02:00
Kaleb Barrett
2be836bf6d
Add yaml.UnsafeLoader ( #5441 )
2021-05-13 18:24:23 -07:00
Viktor Roytman
bbe7e5ef11
Add should_strip_auth to requests SessionRedirectMixin ( #5439 )
2021-05-13 20:58:43 +02:00
n0ob404
7a9b4f93ba
Add stubs for redis Redis and Pipeline methods ( #5415 )
2021-05-13 09:53:26 +02:00
Sebastian Rittau
3db20f09ca
pyjwt includes annotations since version 2.0.0 ( #5426 )
...
Relates to #4856
2021-05-12 19:57:48 +03: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
Mohit Goyani
23efb32c43
fixed wrong return type in xxhash ( #5378 )
...
* fixed wrong return type in xxhash
2021-05-09 20:14:08 +03:00
Ricardo
e3f510e896
redis client: adding __del__ and close ( #5365 )
...
* redis client: adding __del__ and close
2021-05-07 16:48:55 +03:00
Vyom Pathak
00f2301029
Fixed: Argument for Werkzeug's Headers.pop method. ( #5335 )
...
* Fixed: Argument for Werkzeug's Headers.pop method
* Changed: Overloaded Headers.pop function to support different argument types
2021-05-05 21:00:11 +03:00
Akuli
8379386bd4
get rid of Any in paramiko HostKeys ( #5342 )
2021-05-05 12:35:44 +02:00
Jukka Lehtosalo
a5e243fbcd
Change some str types to Text in google.protobuf.text_format ( #5343 )
...
Python 2 `unicode` values are supported. For example:
https://github.com/protocolbuffers/protobuf/blob/master/python/google/protobuf/text_format.py#L843
2021-05-05 09:33:59 +01:00
Akuli
9f732a128a
enable mypy_test for python 3.10 ( #5341 )
...
* enable mypy_test for python 3.10
* avoid collections.Mapping and collections.MutableMapping, import from typing
2021-05-05 00:09:33 +03:00
Christopher Dignam
30154447e7
add stubs for "annoy" ( #5319 )
...
This change adds type stubs for the "annoy" package: https://github.com/spotify/annoy
2021-05-03 20:49:52 -07:00
Giel van Schijndel
b0c6598fba
fix(stubs/click): don't force autocompleter to accept anything as context ( #5265 )
...
* fix(stubs/click): don't force autocompleter to accept anything as context
Additionally it's enough if it's return value is iterable (e.g. a
generator).
2021-04-30 18:03:17 +03:00
Jukka Lehtosalo
fe4acabdd7
Allow bytes in addition to str in google.protobuf.text_format ( #5267 )
2021-04-30 15:46:29 +02:00
Akuli
8b23590952
fix requests.adapters.HttpAdapter.max_retries ( #5268 )
2021-04-30 15:46:02 +02:00