Commit Graph

894 Commits

Author SHA1 Message Date
Alex Waygood
4414246a15 Clean up a few Python 2 remnants (#8452) 2022-07-31 19:19:18 +01:00
Kevin Kirsche
ca633bbde8 Add type hints to flask_sqlalchemy.model (#8389) 2022-07-31 15:36:46 +01:00
Kevin Kirsche
36a5bb08ad Annotate flask_sqlalchemy.__init__.Pagination (#8390)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-07-31 11:52:26 +01:00
Sebastian Kreft
66eef16d66 Add annotations to urrlib3.util.url (#8448) 2022-07-30 20:04:45 +01:00
Alex Waygood
fdeb216547 Remove or move several TypeAlias declarations (#8444) 2022-07-30 15:28:52 +01:00
Nikita Sobolev
275fc28733 Improve redis.cluster annotations (#8379)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-07-30 12:50:39 +01:00
Nikita Sobolev
aba4bbd13b Add pyopenssl.rand module (#8435) 2022-07-29 09:24:15 +01:00
Shantanu
a70667804a Bump braintree to 4.16.* (#8433)
Resolves #8431
2022-07-28 22:32:06 -07:00
github-actions[bot]
81a8e11638 [stubsabot] Bump regex to 2022.7.25 (#8432)
Co-authored-by: stubsabot <>
2022-07-28 17:29:39 -07:00
ow0x
f074ef6803 [pillow] add new PIL.Image enums (#8419)
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
2022-07-28 14:20:52 -07:00
Kevin Kirsche
e48c176e7b Update emoji stubs for v2.0.0 (#8426) 2022-07-28 18:29:35 +01:00
Kevin Kirsche
16e44d560f Fix TODO RE: Use of Concatenate and ParamSpec in sqlalchemy (#8415) 2022-07-27 20:00:43 -07:00
Kevin Kirsche
046c0104e4 Fix todo in setuptools.command.test (#8416)
With https://github.com/python/mypy/pull/10884 merged and released, this should be safe to re-enable per the todo comment.

https://github.com/pypa/setuptools/blob/main/setuptools/command/test.py#L117
2022-07-27 18:23:37 -07:00
Kevin Kirsche
d8b0c605ed mysqlclient.connection: add missing type hints (#8393)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2022-07-26 06:26:35 -07:00
Kevin Kirsche
33878a6ea4 requests: add type hints to requests.utils (#8395)
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
2022-07-26 06:25:56 -07:00
Kevin Kirsche
37911bfaa3 Add type hints to mysqlclient.times (#8392) 2022-07-26 15:06:37 +02:00
Aksel Lunde Aase
e853d5608e SQLAlchemy: Fix annotations for Query.{update,delete} (#8388)
Closes: #8387
2022-07-26 11:21:10 +02:00
Kevin Kirsche
df905102da Add more urllib3.__init__ annotations (#8402) 2022-07-25 22:17:52 +01:00
Kevin Kirsche
ef810e4f47 Annotate mysqlclient.release.version_info (#8391) 2022-07-25 22:08:17 +01:00
Kevin Kirsche
432e55b039 Add missing re-exports and vars to requests.compat (#8396) 2022-07-25 21:56:05 +01:00
Kevin Kirsche
d3c4cb105a Add missing __version__ to chardet.__init__ (#8401) 2022-07-25 21:37:21 +01:00
Nikita Sobolev
d4287a7f08 Add pyopenssl.version module (#8384) 2022-07-24 20:46:54 +01:00
Nikita Sobolev
eb9edf1bd6 Add missing methods to OpenSSL.SSL.Connection (#8374)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-07-24 16:48:41 +01:00
Kevin Kirsche
980b1954fd PyYaml’s Serializer: annotate open, close, serialize (#8383)
As seen here:
https://github.com/yaml/pyyaml/blob/master/lib/yaml/serializer.py#L27-L41

Neither `open` nor `close` methods return, so `None` added as the return type.

Finally, serialize accepts a Node and does not return as seen here:
https://github.com/yaml/pyyaml/blob/master/lib/yaml/serializer.py#L46-L58
2022-07-24 14:51:39 +01:00
Kevin Kirsche
a066618eb6 mysqlclient: Annotate types of exceptions in Connection class (#8382) 2022-07-24 14:48:48 +01:00
Kevin Kirsche
f7166fc6ea Add return type to MySQLdb.Connection.__enter__ (#8381)
This pull request adds the return type, as seen in the link below, to the `mysqlclient.MySQLdb.connections:Connection.__enter__`
https://github.com/PyMySQL/mysqlclient/blob/main/MySQLdb/connections.py#L230-L231
2022-07-24 12:48:47 +01:00
Nikita Sobolev
5598b49851 Improve redis.crc types (#8375) 2022-07-23 16:57:42 +01:00
Shane Harvey
b47d771fc9 pyopenssl: data argument for set_ocsp_server_callback/set_ocsp_client_callback can be non-bytes (#8371) 2022-07-23 12:06:59 +01:00
Nikita Sobolev
60e5d96043 Add ocsp callback setters to OpenSSL.SSL (#8367) 2022-07-22 19:27:28 +01:00
Nikita Sobolev
83c6a48772 Add proto_version setters to OpenSSL.SSL (#8363) 2022-07-22 11:33:46 +02:00
Nikita Sobolev
175e81be7f Improve redis.utils types (#8362)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-07-22 08:57:15 +01:00
Nikita Sobolev
fab1b59715 Always return Iterator, not Iterable for __iter__ (#8361) 2022-07-22 08:10:58 +01:00
Jelle Zijlstra
b418c1c3ba beautifulsoup4: Fix type of Tag.__iter__ (#8357) 2022-07-21 21:32:15 +02:00
Nikita Sobolev
6ae2da64e6 Improve redis.retry types (#8354) 2022-07-21 17:51:13 +02:00
Nikita Sobolev
6fa7846edd Annotate some redis.backoff items (#8352) 2022-07-21 16:52:15 +02:00
John Villalovos
e42c983740 requests: add annotation for parse_header_links (#8349)
In the requests package the function `utils.parse_header_links()`
takes a str as input and returns a list of dictionaries.

This can be seen in the unit tests that are used:
786255613b/tests/test_utils.py (L644-L664)
2022-07-20 21:02:29 -07:00
Sebastian Rittau
73fbb53475 Update setuptools stubs (#8345)
setuptools now vendors `distutils` as `setuptools._distutils`.
2022-07-20 18:44:22 +02:00
Nikita Sobolev
f178ae0d83 Improve types of redis.connection module (#8342)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-07-20 13:48:13 +01:00
Shantanu
c783dda71b Allowlist useless modules (#8340)
These are the ones I chose not to add from #8321

Fixes most of #8339
2022-07-19 19:15:20 -07:00
Ben Avrahami
25e74740ae Type async Pipeline commands explicitly (#8325) 2022-07-19 15:15:09 +02:00
Nikita Sobolev
9cda16f5df Improve redis.sentinel types (#8331) 2022-07-19 13:04:09 +02:00
Alex Waygood
e3d4bdc91a Third-party stubs: enforce CamelCase for type alias names (#8256)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2022-07-19 08:23:24 +01:00
Shantanu
4b34b345f1 Add missing third party modules (#8321)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: hauntsaninja <>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-07-19 08:11:29 +01:00
David Hotham
6873a78b6b requests: Annotate Session.merge_environment_settings (#8313)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-07-18 19:54:48 +01:00
唐翔昊
341057105f pycurl: Add CurlMulti.setopt() (#8315) 2022-07-18 19:02:28 +01:00
Alex Waygood
8af41720b6 Remove frozendict stubs (#8326) 2022-07-18 18:47:06 +01:00
Shantanu
38407a7904 [stubsabot] Bump Markdown to 3.4.* (#8309) 2022-07-18 13:04:27 +02:00
Alex Waygood
35616b439f Run pycln as a pre-commit hook in CI (#8304) 2022-07-18 09:27:28 +02:00
Shantanu
64359528fc croniter: make package, complete public API (#8316) 2022-07-17 17:08:03 -07:00
Shantanu
9df28aac13 Make xxhash, editdistance into packages (#8320)
This matches the runtime. Also see #8319
2022-07-17 12:26:18 -07:00