Commit Graph

6639 Commits

Author SHA1 Message Date
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
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
Shane Harvey
7a73660f3f Fix hints for TestCase.assertRaises (#8373) 2022-07-23 10:43:38 +01:00
Nikita Sobolev
60e5d96043 Add ocsp callback setters to OpenSSL.SSL (#8367) 2022-07-22 19:27:28 +01:00
Alex Waygood
23c4b124a6 Stubtest allowlists: put all the fake __iter__ methods together (#8368) 2022-07-22 18:08:13 +01:00
Nikita Sobolev
32bac7280e Remove python3.6 stubs from pyclbr (#8364) 2022-07-22 11:36:04 +02:00
Nikita Sobolev
83c6a48772 Add proto_version setters to OpenSSL.SSL (#8363) 2022-07-22 11:33:46 +02:00
Nikita Sobolev
73de76c033 Change Stub versioning wording in CONTRIBUTING.md (#8365) 2022-07-22 11:31:51 +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
Shantanu
1a8a49e671 wsgiref.types: use Iterator, not Iterable (#8358)
https://github.com/python/typeshed/issues/8356
2022-07-21 13:26:44 -07: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
Tetsuo Kiso
9fe771f31d xml.dom.minidom: add more missing type annotations to methods on Element (#8355) 2022-07-21 17:45:52 +02:00
Alex Waygood
eca5549ee1 CI: Use macos-latest for stubtest (#8353) 2022-07-21 16:52:41 +02:00