Commit Graph

817 Commits

Author SHA1 Message Date
alexander-held
60e6a3560e fix: support dictionaries as table headers (#4835)
Fixes #4829
2020-12-18 19:21:22 +01:00
Ivan Levkivskyi
53d7813b3c Try fixing mypy-protobuf backwards incompatibility (#4833)
Currently, the only way forward would be to update `mypy` and `mypy-protobuf` at the same time, which causes pain. The imprecise fallback overloads can be removed later, I leave comments about this.

Co-authored-by: Ivan Levkivskyi <ilevkivskyi@dropbox.com>
2020-12-18 13:35:28 +00:00
Julien Danjou
90eb34a8be Add to_url() return type (#4831) 2020-12-18 11:44:38 +01:00
Jon Dufresne
3ae99d153b Allow Python 2 unicode for some click interfaces (#4825)
Helps Python 2 code using:

    form __future__ import unicode_literals

On Python 2, these interfaces are compatible with both str and unicode.
2020-12-15 20:51:43 +01:00
cdce8p
e5d3a47632 Add stubs for AsyncMock (#4752) 2020-12-14 18:32:14 +01:00
Jia Chen
02b3a48313 Annotate load_entry_point() (#4775) 2020-12-14 17:20:40 +01:00
Sebastian Rittau
c26b804055 Remove a missing import (#4821)
Works around #4815, although a proper fix is needed.
2020-12-14 11:49:22 +01:00
Sam Bull
8da53223d7 Fix pkg_resources.require() (#4818) 2020-12-14 09:34:18 +01:00
Guido van Rossum
7aa5bd0029 Add PEP 612 support to typing_extensions stub (#4814) 2020-12-13 23:40:37 -08:00
Pete Scopes
906b4ec5ba Cryptography 3.x pkcs12 (#4792) 2020-12-01 16:16:44 +01:00
Vasily Zakharov
d252e4aae9 Some missing stubs for cryptography.x509 (#4761) 2020-11-30 12:43:59 +01:00
Philipp Hahn
2b3aa94fb5 paramiko - A Python implementation of SSHv2 (#4770)
* paramiko - A Python implementation of SSHv2

Code: <https://github.com/paramiko/paramiko>
Doc: <http://docs.paramiko.org/en/stable/index.html>
2020-11-30 11:15:21 +01:00
Jonathan Schoonhoven
6d697e7f2c fix redis str types (#4783) 2020-11-28 19:26:05 -08:00
Nipunn Koorapati
9af49c0b69 Protobuf stubs update using mypy-protobuf (#4785)
* Add script to generate protoc stubs using mypy-protobuf generated stubs

* Use generate_proto_stubs to generate stubs for protobuf 3.14.0

* Skip _pb2.pyi from flake8,black,isort,pytype
2020-11-25 10:48:26 -08:00
Marti Raudsepp
4335fe9ef9 cryptography: Add common certificate extensions (#4778)
Added hints for following classes:
* AuthorityKeyIdentifier
* SubjectKeyIdentifier
* AuthorityInformationAccess
* SubjectInformationAccess
* BasicConstraints
* KeyUsage
* ExtendedKeyUsage
* UnrecognizedExtension
* AccessDescription (not extension itself, but used by
    AuthorityInformationAccess, SubjectInformationAccess)
2020-11-25 08:56:27 -08:00
Marti Raudsepp
5466117847 cryptography: Fix 'oid' field hints to ObjectIdentifier (#4780)
The `ExtensionOID` class is simply a namespace for constants, there are no instances of that class.
2020-11-24 18:08:47 -08:00
Daniel O'Neel
bd69ad1292 Add ttl argument to redis client set operation (#4788) 2020-11-24 17:28:16 -08:00
Philipp Hahn
8491755011 POlib: gettext portable / message objects (#4772) 2020-11-16 15:11:37 +01:00
Anders Kaseorg
536a5c6162 Fixes for markdown stubs (#4758)
* AbbrPreprocessor subclasses BlockProcessor
* Remove members inherited from base classes
* Add missing markdown.Extension alias
* Add missing Markdown members
* Fix Extension.config type
* Fix Pattern.handleMatch type
2020-11-13 11:25:01 +01:00
Neel Somani
2371df1a42 Update requests stubs with ReadTimeout exception (#4747) 2020-11-06 19:40:12 +01:00
Gal Ben David
92911e3874 Add support for [b]zpopmin, [b]zpopmax (#4742) 2020-11-03 17:27:37 +01:00
Sebastian Rittau
d2a7889fe0 Drop support for Python 3.5 (#4675)
Python 3.5 EOL was on 2020-09-30.
2020-11-02 16:18:20 +01:00
Mikołaj Kuranowski
40b44a9bf1 Add missing methods methods in aiofiles (#4734)
* fix aiofiles stubs

* switch io.BinaryIO to typing.BinaryIO

* swap typing.Literal to typing_extensions.Literal

* fix overload overlap in open function

* Fix filename generics

* add missing loop and executor arguments to aiofiles.open

* Remove generics from async files

* Fix async file-like read, readline and write signatures
2020-11-01 16:08:14 -08:00
Vincent Meurisse
0e002f41ef Add stub for pyrfc3339 (#4564) 2020-11-01 13:19:25 -08:00
henribru
fd6bb39f55 Update CodeGeneratorResponse (#4680)
Add Feature enum and supported_features.
These are related to the optional proto3 fields introduced in 3.12.0,
see https://github.com/protocolbuffers/protobuf/releases/tag/v3.12.0 and
214c77e1b7/src/google/protobuf/compiler/plugin.proto (L112)
2020-11-01 13:09:49 -08:00
Vincent Barbaresi
eb2fff7a92 update and complete pymysql.connections stubs to 0.10.1 (#4702)
Solves part of #4487, other modules can still be updated
2020-10-29 10:39:58 +01:00
Árni Már Jónsson
e2a70235b4 Adding a stub for redis.Redis.client() (#4720)
Closes: #4721
2020-10-27 12:25:20 +01:00
Ethan Pronovost
f81e479861 Annotate extension methods in protobuf message (#4706) 2020-10-27 09:14:48 +01:00
Sebastian Rittau
4603728a15 Clean up files with former forced consistency (#4717)
Replace Text with str in Python 3 code
2020-10-27 07:52:35 +01:00
Vincent Barbaresi
c585d5d5cf Update stubs for redis-py connection module (#4692) 2020-10-26 11:12:39 +01:00
Katelyn Gigante
5dd444b2bf Add missing attributes to Markdown stub (#4707) 2020-10-24 23:37:43 -07:00
Jukka Lehtosalo
9134f7bc3c Fix type of typed_ast.ast27.Str.s (#4703)
The original type was too narrow.
2020-10-25 01:39:51 +02:00
Vincent Barbaresi
71e2cdcc68 update requests stubs with various missing methods (#4691) 2020-10-24 14:01:24 +02:00
Kaushal Rohit
41f2c92dfe Fixed stubs for protobuf symbol_database and message (#4673) 2020-10-23 22:51:42 +02:00
Moriyoshi Koizumi
bad9701849 Fix aiofiles type definitions (#4650) 2020-10-23 10:49:51 +02:00
Christine
b76d9e46b8 redis: add acl stubs (#4690) 2020-10-23 09:50:18 +02:00
Shantanu
6ff5b88ca7 typeshed: remove crufty comments (#4699)
Co-authored-by: hauntsaninja <>
2020-10-23 09:40:06 +02:00
Utsav
6f943d43ea Added __class_getitem__ (#4695)
Resolves #4682

Co-authored-by: hauntsaninja <>
2020-10-22 14:05:04 -07:00
Shantanu
faf827bc36 mark some positional-only arguments (#4693)
https://github.com/python/mypy/pull/9626 will make stubtest a little bit
stricter about positional-only arguments for dunders like __init__

Co-authored-by: hauntsaninja <>
2020-10-22 13:31:23 +02:00
Kyle Fuller
b16327fe7e jinja2: Allow Sequence for Environment names (#4677) 2020-10-19 22:51:53 +02:00
Shantanu
10d3c6c325 Remove bad namedtuple to fix CI (#4684)
Co-authored-by: hauntsaninja <>
2020-10-18 00:25:09 -07:00
Christine
9a8979ec51 update init stubs for Redis and redis Connection (#4648) 2020-10-15 18:09:02 +02:00
Kaushal Rohit
b9dadee6d6 Tighten pyjwt types using cryptography stubs (#4645) 2020-10-15 13:32:54 +02:00
Kaushal Rohit
83ffaa6ff5 Added Iterable of tuples support (#4636) 2020-10-14 21:29:31 +02:00
Julien Danjou
f35e79fd24 fix(cachetools): fix decorators signature typing (#4657)
Fixes #4652
2020-10-14 17:38:30 +02:00
crusaderky
58028a95eb cachetools ttl should be float (#4668) 2020-10-14 17:31:18 +02:00
Mariam Maarouf
1dc3880400 retry: loosen type for backoff, correct type for jitter (#4659) 2020-10-12 11:42:20 -07:00
Adam Dangoor
b9c81fe2f0 Add some return type hints for methods of Werkzeug's EnvironBuilder c… (#4653) 2020-10-12 13:47:54 +02:00
Julien Danjou
7a2398df18 fix(redis): add missing __enter__ and __exit__ methods on Redis (#4655) 2020-10-12 13:47:32 +02:00
Hynek Schlawack
977179f2f0 markdown: no assumptions about ext cfg types (#4651)
`extension_configs` are by definition unpredictable and an example that
isn't str → str would be:

    extension_configs={"codehilite": {"guess_lang": False}}
2020-10-12 12:58:58 +02:00