Akuli
8d5452e873
do not use mypy-specific syntax in '# type: ignore' comments ( #5953 )
2021-08-29 03:58:34 -07:00
Akuli
cd90721604
Clean up tests/check_pep_604.py ( #5980 )
2021-08-28 21:56:53 -07:00
github-actions[bot]
ed25989ef2
Remove unused stubtest allowlist entries ( #5981 )
...
Co-authored-by: hauntsaninja <hauntsaninja@users.noreply.github.com >
2021-08-28 21:22:24 -07:00
Shantanu
2d4fcbc81e
zipfile: py310 changes, fix open ( #5979 )
...
Co-authored-by: hauntsaninja <>
2021-08-28 22:45:01 +02:00
Sebastian Rittau
8e0e13a2d5
Commit messages for stubs are now used as changelog ( #5950 )
2021-08-28 12:11:22 -07:00
Sebastian Rittau
f1532745bc
A few html5lib annotations ( #5913 )
2021-08-28 12:08:45 -07:00
Shantanu
ba998cd5f9
multiprocessing.pool: fix __init__ methods ( #5833 )
...
Co-authored-by: hauntsaninja <>
2021-08-28 12:04:08 -07:00
Shantanu
670929e908
dateparser: use PEP 604 ( #5977 )
...
Co-authored-by: hauntsaninja <>
2021-08-28 21:03:02 +02:00
Shantanu
f6e4c9c38f
Check for PEP 604 usage in CI ( #5903 )
...
Since this is a common review issue and our stubs have all been
converted
Co-authored-by: hauntsaninja <>
2021-08-28 11:37:50 -07:00
Jon Dufresne
9d02cd265d
Remove leftover openssl-python in pyright configuration ( #5976 )
...
The package was renamed in a98fceca2f .
2021-08-28 19:05:24 +02:00
Jon Dufresne
33b08cb3d7
Remove leftover pyright tornado configuration ( #5974 )
...
tornado was removed in 5a7f25584e .
2021-08-28 08:29:40 -07:00
Sebastian Rittau
27af44fee2
Deprecate geoip stubs ( #5967 )
...
Geoip comes with its own type hints starting at version 4.0.2.
2021-08-28 14:58:38 +03:00
Sebastian Rittau
5a7f25584e
Remove tornado stubs again ( #5973 )
2021-08-27 20:48:32 +02:00
Jon Dufresne
b50ebafa79
Tighten return type of OpenSSL Connection.get_protocol_name() ( #5972 )
...
The method always returns a str. See implementation at:
30e82d4ba5/src/OpenSSL/SSL.py (L2420-L2430)
If version were ever None, it would raise an exception on the .decode()
line.
2021-08-27 10:54:27 -07:00
JP Sugarbroad
3dbaf34bd5
yaml.cyaml: Switch Optional to new pipe-based union ( #5971 )
2021-08-27 19:21:44 +02:00
Sebastian Rittau
47dd8549d2
Temporarily restore tornado stubs and add obsolete_since ( #5968 )
...
The stubs can be removed again, once a new release was built.
2021-08-27 10:00:37 -07:00
Jon Dufresne
da8d291bdb
Update versions of Python 2 stubs to prepare for eventual removal ( #5970 )
2021-08-27 18:15:13 +02:00
Jon Dufresne
2e1e91e3c8
Remove tornado stubs in favor of upstream ( #5965 )
...
The tornado package has shipped a PEP 561 py.typed file since Mar 1,
2019.
2021-08-27 08:55:41 +02:00
JP Sugarbroad
07a58c3266
Add methods to yaml.cyaml.CParser ( #5963 )
2021-08-26 19:28:17 -07:00
Anton Grübel
ac2ef6e8c9
Use paramspec in no_type_check_decorator ( #5942 )
2021-08-26 22:46:27 +03:00
Sam Martin
f1da797c62
Addition of aws-xray-sdk package ( #5961 )
2021-08-26 01:03:38 +02:00
Jon Dufresne
ac39a73d38
Add type for undocumented copyreg.dispatch_table ( #5959 )
2021-08-26 00:59:23 +02:00
Anders Kaseorg
65a88ace0a
Add email.message.Message.__iter__ ( #5960 )
...
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2021-08-25 22:43:20 +02:00
Oleg Höfling
a74624d31b
Introduce generic logger type in loggeradapter ( #5954 )
2021-08-25 05:45:56 -07:00
Ruben Opdebeeck
e567af01e5
Fix collections.UserString __reversed__ and __iter__ ( #5958 )
2021-08-25 15:27:20 +03:00
Alex Nelson
d34d047002
Add DOOR, PORT, and WHT type signatures for stat module ( #5955 )
...
Signed-off-by: Alex Nelson <alexander.nelson@nist.gov >
2021-08-24 21:22:24 +02:00
Sebastian Rittau
9b366daaec
Explain adding new third-party stubs ( #5951 )
...
Closes : #5438
2021-08-23 20:47:54 -07:00
Sebastian Rittau
db0f37ccdf
Modernize mock stubs ( #5949 )
...
* Import from `collections.abc`, instead of `typing`.
* Replace `Text` with `str`.
* Remove version checks.
* Convert mock into a package
2021-08-23 11:53:03 -07:00
Gary Yendell
28f2953b49
mock: Remove version checks, remove Python 2 ( #5948 )
...
The mock package is a backport of the latest `unittest.mock` module for all supported Python versions, making version checks unnecessary.
Also update the package version. The latest version doesn't support Python 2 anymore.
2021-08-23 13:57:34 +02:00
SeenicRoot
034a5f6aec
Fix return type of Image.reduce() in Pillow ( #5946 )
...
Image.reduce() should return an Image instead of None.
2021-08-22 20:03:22 -07:00
Johan Walles
e4879abb59
text_type should be a type alias, not a variable ( #5945 )
2021-08-22 12:44:23 +02:00
Anton Grübel
29c63e0d9c
add ParamSpec to importlib.util ( #5944 )
2021-08-21 08:24:25 -07:00
Anton Grübel
2f499c7e90
add ParamSpec to trace.runfunc ( #5940 )
2021-08-20 10:46:34 +02:00
Niklas Gustafsson
918c7d0b84
Add ZipInfo type hint to members argument of ZipFile.extractall ( #5936 )
2021-08-20 10:43:45 +02:00
JHeilCoveo
7144118995
Add keys module to cachetools package ( #5938 )
2021-08-20 09:59:15 +02:00
Rebecca Chen
fac273a545
Stop using pytype.pytd.typeshed.get_python_major_versions. ( #5941 )
...
We deleted this method as part of our Python 2 cleanup efforts.
2021-08-19 18:36:19 -07:00
Anton Grübel
c54909ab69
Use ParamSpec for unittest.signals.removeHandler() ( #5905 )
2021-08-19 18:32:24 +02:00
Henry Schreiner
2002649395
fix(Deprecated): use literal for actions ( #5939 )
2021-08-19 18:06:23 +02:00
Henry Schreiner
eec10a6c7a
fix(Deprecated): support any warning for category ( #5937 )
2021-08-19 17:55:14 +02:00
wouter bolsterlee
757d962237
Improve ssl module annotations ( #5934 )
...
This improves the type annotations for the ‘ssl’ module:
- Various APIs taking file names (e.g. keyfile=, certfile=, cafile=,
capath=, ...) were annotated as accepting only strings, while actually
they accept str, bytes, and os.PathLike (such as pathlib.Path).
CPython's _ssl.c module has always used PyUnicode_FSConverter to
handle (normalize) these. Change the annotations accordingly using the
internal _typeshed.StrOrBytesPath alias.
- Tighten the ‘purpose=’ argument in various functions to use the
already defined ‘Purpose’ enum instead of accepting ‘Any’.
2021-08-18 08:23:31 -07:00
Louis Duperier
bfff7d763b
add type stubs ( #5932 )
2021-08-18 17:02:14 +03:00
Nathan Naze
34b3f0bf7c
Add missing attributes to IncompleteRead ( #5933 )
2021-08-17 21:27:09 -07:00
Marc Mueller
837b57fdd1
Rename nmap to python-nmap ( #5931 )
2021-08-16 16:44:04 -07:00
Hackrrr
3ce5502675
Added str type to modifying methods on PageElement ( #5929 )
...
Co-authored-by: Hackrrr <Hackrrr@users.noreply.github.com >
2021-08-15 08:15:34 -07:00
Sebastian Rittau
5f2e117bba
CONTRIBUTING: Use PEP 604 syntax ( #5925 )
...
Co-authored-by: Akuli <akuviljanen17@gmail.com >
2021-08-14 20:48:40 -07:00
Jeremy Nation
0e62c8ab06
Add missing stub for _CursesWindow.noutrefresh ( #5928 )
2021-08-14 23:55:43 +02:00
Sam Martin
c83a455d67
Fix malformed typeschool URL ( #5927 )
2021-08-14 22:57:46 +03:00
Sam Martin
a2bc47a682
docutils - added missing stubs for __init__ methods ( #5924 )
...
Co-authored-by: Akuli <akuviljanen17@gmail.com >
2021-08-14 20:35:02 +03:00
Oleg Höfling
9715657994
bump black + isort ( #5926 )
...
Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com >
2021-08-14 14:03:58 +02:00
Oleg Höfling
a6ce6fdce6
More specific type hints for dateparser ( #5920 )
...
Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com >
2021-08-14 12:33:32 +02:00