Commit Graph

6753 Commits

Author SHA1 Message Date
Alex Waygood
ea7bbbdad7 Move Match and Pattern to re.pyi; move ContextManager protocols to contextlib.pyi (#8447) 2022-07-31 15:27:47 +02: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
935ac9ca9e test_cases: Improve README (#8445) 2022-07-30 18:40:56 +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
Alan Isaac
a13e2339c4 traceback: Use _typeshed.SupportsWrite instead of typing.IO (#8442) 2022-07-30 12:24:57 +01:00
Kevin Kirsche
f550c24886 Add multiprocessing.popen_spawn_win32 submodule (#8428) 2022-07-29 16:02:15 +01:00
Kevin Kirsche
17e3cf99a4 Add multiprocessing.popen_spawn_posix submodule (#8427) 2022-07-29 15:52:49 +01:00
Alex Waygood
553700e355 Move some protocol definitions closer to their usage sites (#8436) 2022-07-29 06:26:27 -07: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
1f0e641521 Add multiprocessing.popen_forkserver submodule (#8425)
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-28 17:26:06 +01:00
Alex Waygood
a9f6632d1b multiprocessing.reduction: improve recvfds and recv_handle (#8422) 2022-07-28 17:05:08 +01:00
Alex Waygood
26d09359cf multiprocessing.resource_sharer: remove unused TypeAlias (#8424) 2022-07-28 17:43:36 +02:00
Kevin Kirsche
fe1e3ef91b Add multiprocessing.heap submodule (#8412)
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-28 16:27:25 +01:00
Kevin Kirsche
087fb6b96d Add multiprocessing.popen_fork submodule (#8420)
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-28 16:19:43 +01:00
Kevin Kirsche
dd24bba3dd Add multiprocessing.resource_sharer submodule (#8413)
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-28 16:09:18 +01:00
Kevin Kirsche
177bbf7864 Add curses.has_key submodule (#8421) 2022-07-28 14:39:44 +01:00
Shantanu
804628dc7d Remove unused protocol (#8418) 2022-07-27 20:35:47 -07:00
Kevin Kirsche
b7b98a6c9f curses: add Concatenate (#8414)
Update the `wrapper` `__func` parameter to use ParamSpec and Concatenate to address a todo.
2022-07-27 20:02:25 -07: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
Alex Waygood
78e0b3cfca Stubtest: allowlist all of distutils on 3.11 (#8411)
Fixes #8410
2022-07-27 20:27:38 +01:00
Kevin Kirsche
48e502c431 fix: Add missing multiprocessing.util types (#8404)
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-27 20:22:54 +01:00
Kevin Kirsche
5397d430ea Add multiprocessing.resource_tracker submodule (#8405) 2022-07-27 17:31:31 +01:00
Kevin Kirsche
a0c1a2f566 Add multiprocessing.forkserver submodule (#8406)
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-27 17:08:12 +01:00
Kevin Kirsche
41435ef25a Allow handling None return values of RawConfigParser.get (#8380)
Co-authored-by: Akuli <akuviljanen17@gmail.com>
2022-07-27 01:23:58 +03: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
5732b8f34e email.Message.walk yields self (#8398)
This updates the generator used by `Message` to return `Self` so that it correctly changes when a `MIMEPart` or `EmailMessage`.

Fixes #8290
2022-07-26 11:17:45 +02:00
Nikita Sobolev
abd893abae Type http.client.HTTPConnection.sock (#8386) 2022-07-26 11:07:54 +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
Kevin Kirsche
0a31779909 Update CONTRIBUTING.md as TypeAlias is now allowed (#8397) 2022-07-25 12:53:33 -07: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
Sam Bull
be0d159df3 asyncio.AbstractEventLoop: Allow Path for create_unix_server() (#8376) 2022-07-24 15:43:52 +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
Alex Waygood
62cde01365 Upgrade flake8-pyi to 22.7.0 (#8377) 2022-07-24 03:20:35 +01:00
Nikita Sobolev
5598b49851 Improve redis.crc types (#8375) 2022-07-23 16:57:42 +01:00