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
Nikita Sobolev
6fa7846edd
Annotate some redis.backoff items ( #8352 )
2022-07-21 16:52:15 +02:00
Tetsuo Kiso
10bc4b0584
xml.dom.minidom: add missing type annotation of Element.getAttribute ( #8350 )
2022-07-21 08:18:58 +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
Alex Waygood
5bc9554573
stdlib/VERSIONS: fix crusty comment ( #8347 )
...
Resolves #8310
2022-07-20 18:59:01 +02:00
Alex Waygood
d1e80a724a
Add some missing Windows constants ( #8346 )
2022-07-20 17:45:36 +01: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
85077b273d
Show all packages in environment ( #8341 )
2022-07-19 19:42:52 -07: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
Alex Waygood
a57e182608
enum: Correct IntFlag mro on 3.11+ (#8334 )
2022-07-19 21:47:37 +02:00
Sebastian Rittau
5534007189
Fix return type of email.header.decode_header() ( #8337 )
2022-07-19 20:43:48 +01:00
Alex Waygood
6903041744
Use CamelCase for type aliases in xml.etree.ElementPath.pyi ( #8335 )
2022-07-19 12:04:43 -07:00
q0w
6d0e01e62b
socketserver: Set StreamRequestHandler.connection to SSLSocket ( #8274 )
2022-07-19 09:13:43 -07:00
Shantanu
f76c6ed55a
multiprocessing: make some overloads more precise ( #8330 )
...
See discussion here: https://github.com/python/typeshed/issues/4266#issuecomment-1187867029
Co-authored-by: hauntsaninja <>
2022-07-19 16:55:23 +01:00
Sebastian Rittau
ef443b6359
Re-enable SQLAlchemy mypy tests ( #8282 )
...
These used to crash if run twice in succession locally, but the crash has been fixed on mypy 0.971
2022-07-19 16:46:39 +01:00
Alex Waygood
fceccd217c
Upgrade mypy to 0.971 ( #8332 )
2022-07-19 16:27:05 +01:00
Alex Waygood
e2ce7c6344
stdlib: audit more callback annotations ( #8209 )
2022-07-19 07:07:25 -07:00
Alex Waygood
540a6b25bf
Improve urllib.parse.urldefrag ( #8204 )
...
Fixes #2477
2022-07-19 07:05:09 -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
Shantanu
46937df750
wave: allow passing anonymous tuple ( #8328 )
...
Fixes #8322
2022-07-18 19:53:50 -07:00
Shantanu
4b184356f1
string: remove stray comment ( #8329 )
2022-07-18 19:53:15 -07:00
Alex Waygood
e156c63bdb
inspect, asyncio: Use more TypeGuards (#8057 )
2022-07-18 19:49:12 -07:00
Alex Waygood
4b504c78e0
Improve asyncio callbacks ( #8192 )
2022-07-18 19:46:38 -07:00
Graham Bleaney
9519e3652b
Add LiteralString support to string module ( #8268 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2022-07-18 19:34:27 -07:00
pre-commit-ci[bot]
89154bf4c8
[pre-commit.ci] pre-commit autoupdate ( #8327 )
...
* [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/hadialqattan/pycln: v2.0.2 → v2.0.4](https://github.com/hadialqattan/pycln/compare/v2.0.2...v2.0.4 )
* Update requirements-tests.txt
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-18 22:40:15 +01:00