Avasam
75f47d0cb1
Typecheck typeshed's code with pyright ( #9793 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
2023-02-22 18:53:07 +00:00
Alex Waygood
b0dc6a3405
Add defaults to logging.LoggerAdapter methods ( #9797 )
2023-02-22 11:50:11 +01:00
Alex Waygood
9ed719b640
Bump pyright to 1.1.295 ( #9796 )
2023-02-22 09:22:35 +00:00
Avasam
078c6a0958
Update Unused parameters in stubs/ ( #9704 )
...
* Update _Unused TypeAlias
* Update `object | None` params
* Replace unused `object` parameters with `Unused` alias
2023-02-21 23:52:52 -08:00
Alex Waygood
fbc092b4cd
Stdlib: add defaults for several functions that delegate kwargs to other functions at runtime ( #9791 )
2023-02-21 23:31:25 -08:00
github-actions[bot]
6ac15185fb
[stubsabot] Bump setuptools to 67.4.* ( #9794 )
...
Release: https://pypi.org/pypi/setuptools/67.4.0
Homepage: https://github.com/pypa/setuptools
Changelog: https://setuptools.pypa.io/en/stable/history.html
Diff: https://github.com/pypa/setuptools/compare/v67.3.3...v67.4.0
Stubsabot analysis of the diff between the two releases:
- Total lines of Python code added: 877.
- Total lines of Python code deleted: 433.
2023-02-22 00:16:40 +00:00
Alex Waygood
fea57ad095
hmac.HMAC: digestmod defaults to None on py37 (#9790 )
2023-02-21 18:24:34 +00:00
Mynhardt Burger
3f6f54e9d9
Improve openpyxl annotations ( #9764 )
...
Co-authored-by: ArnabRollin <iamarnab.phukan@gmail.com >
Co-authored-by: ArnabRollin <106329283+ArnabRollin@users.noreply.github.com >
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2023-02-21 15:36:57 +00:00
Alex Waygood
f2ae3542d3
Stdlib: Deduplicate some multiprocessing type aliases ( #9788 )
2023-02-21 13:30:41 +01:00
Alex Waygood
c407a44489
Add defaults to csv stubs ( #9774 )
2023-02-21 11:33:38 +01:00
Avasam
5ac80781ec
Integrate requirements-stubtest.txt into METADATA.toml ( #9778 )
2023-02-21 11:19:50 +01:00
Avasam
a6c6bc1b8e
Fix stdlib/disutils testing ( #9734 )
2023-02-21 08:06:20 +00:00
Alex Waygood
880c0da404
Enable some more mypy lints when checking our own code ( #9787 )
2023-02-21 00:54:35 +00:00
Alex Waygood
bc847a9b07
Use generic NamedTuples to clean up urllib.parse ( #9773 )
2023-02-20 16:41:49 -08:00
Alex Waygood
4d99b33f84
Fix an unnecessary allowlist entry in ssl.pyi ( #9776 )
2023-02-20 16:35:38 -08:00
Alex Waygood
9163c71e47
[Minor] Simplify some type hints in stubsabot ( #9785 )
...
We can use `typing_extensions.Self` now
2023-02-20 16:32:22 -08:00
Alex Waygood
e6e7fab111
Add some more environment variables to speedup brew installs in CI ( #9786 )
2023-02-21 00:20:28 +00:00
Avasam
040103a74e
Add missing symbols to tabulate ( #9781 )
2023-02-20 23:57:10 +00:00
Avasam
41d7ddb5fe
Bump pytype to 2023.2.17 ( #9782 )
2023-02-20 22:41:25 +00:00
Avasam
ed6748fb32
Stubtest settings: change ignore_missing_stub default to false ( #9779 )
...
If you're reading about this commit from an autogenerated changelog entry, this should have no user-visible impact on how the stubs are interpreted by a type checker; it's just an internal change to how typeshed's tests work.
2023-02-20 22:37:45 +00:00
Alex Waygood
3786ab295e
Fix an unnecessary socketserver allowlist entry ( #9777 )
2023-02-20 11:14:20 -08:00
Alex Waygood
0878173943
textwrap.{wrap, fill}: max_lines defaults to None (#9775 )
...
All keyword arguments are delegated to `TextWrapper.__init__`: 59e86caca8/Lib/textwrap.py (L373-L396)
2023-02-20 10:39:48 -08:00
Alex Waygood
14ab089bd5
Use a generic NamedTuple for concurrent.futures.DoneAndNotDoneFutures ( #9772 )
2023-02-20 08:54:21 -08:00
Alex Waygood
4273a83bb7
unittest: Use a recursive type alias for assertIsInstance (#9770 )
2023-02-20 15:35:50 +00:00
Alex Waygood
5e6b172e17
stdlib/_decimal.pyi: correct many parameter names (#9769 )
2023-02-20 15:57:54 +01:00
Thomas M Kehrenberg
40d853cbe2
Add __set__ to functools.cached_property ( #9762 )
2023-02-20 12:36:45 +00:00
github-actions[bot]
7b975dc144
[stubsabot] Mark DateTimeRange as obsolete since 2.1.0 ( #9765 )
...
Release: https://pypi.org/pypi/DateTimeRange/2.1.0
Homepage: https://github.com/thombashi/DateTimeRange
Diff: https://github.com/thombashi/DateTimeRange/compare/v2.0.0...v2.1.0
Co-authored-by: stubsabot <>
2023-02-19 16:14:08 -08:00
Alex Waygood
c5b5dd4bf4
Various stdlib dunders: correct parameter names; improve types; add defaults ( #9761 )
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
2023-02-19 22:44:20 +00:00
Avasam
74112dc189
Add a run_stubtest flag to scripts/runtests.py ( #9717 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2023-02-19 22:10:32 +00:00
Avasam
3fc2f27990
Add missing types in xml.dom.minidom ( #9731 )
2023-02-19 21:49:00 +00:00
Avasam
d92332d120
Type Loader parameter in PyYAML/yaml ( #9752 )
2023-02-19 19:22:14 +00:00
Andrew Svetlov
39fcd396ce
lru_cache.cache_info().maxsize can be None for infinite cache size ( #9763 )
2023-02-19 16:50:19 +00:00
Alex Waygood
4ca0c48425
Improve the first overload of is_dataclass ( #9758 )
2023-02-19 06:26:11 -08:00
Alex Waygood
70c027e9ef
Fix broken stubsabot logic in find_first_release_with_py_typed ( #9760 )
2023-02-19 14:22:51 +00:00
Avasam
50acb57cda
Ignore flake8 extensions stubbed by typeshed ( #9715 )
2023-02-19 12:42:03 +00:00
Nikita Sobolev
1387a9efa9
Mark threading.(R)Lock as final ( #9753 )
...
These are actually factory functions: 128379b8cd/Lib/threading.py (L108)
The pure-Python version of `RLock` is, strictly-speaking, subclassable. But you're not *meant* to subclass `RLock`, even if you *can* with the pure-Python version: https://discuss.python.org/t/make-threading-lock-rlock-factory-functions-subclassable/24008/2
2023-02-19 12:21:55 +00:00
hamdanal
a2fee5b30f
pyserial: fix stubtest errors (#9722 )
2023-02-19 12:08:20 +00:00
Shantanu
da9366d016
Add frozen_default to dataclass_transform ( #9756 )
2023-02-18 15:25:29 -08:00
Avasam
1db405b15c
stubsabot: minor refactoring ( #9754 )
2023-02-18 14:25:04 -08:00
Spencer Brown
f5b761d465
Add types for PIL.ImageTk ( #9733 )
2023-02-18 21:50:28 +02:00
Jonathan Plasse
0bb7d621d3
Fix pre-commit configuration ( #9748 )
...
* Fix flake8 pre-commit hook to run on pyi files too
* Fix pycln pre-commit hook
* Run on pyi files too
* Remove `stubs stdlib tests scripts` in args to avoid running pycln on files twice
2023-02-18 06:13:14 -08:00
Max Murin
5ebf892d07
Allow urlparse and urlsplit of bytes URLs ( #9746 )
2023-02-17 21:52:49 +01:00
Max Murin
75cd302215
dataclass: switch order of decorator overloads ( #9743 )
2023-02-16 16:22:56 -08:00
Shantanu
5c54e52e23
Fix default value of input, remove now unused allowlist entry for epoll ( #9742 )
2023-02-17 01:55:31 +02:00
Shantanu
660c832fa4
Remove prettier from pre-commit ( #9744 )
...
This doesn't autofix, see #9742
> GitHub prevented pre-commit.ci from autofixing this pr due to autofixes to a workflow file
Life is too short to spend it being yelled at by robots because line
length in some YAML is too long.
2023-02-16 15:38:39 -08:00
Alex Waygood
7180d0223b
Use typing_extensions.Self instead of _typeshed.Self ( #9702 )
2023-02-15 11:32:43 +01:00
Alex Waygood
8cd6d81f15
Bump pyright to 1.1.294; improve psutil stubs ( #9739 )
...
Partially type psfullmem
2023-02-15 10:54:36 +01:00
Shantanu
58edfea33f
email.parser: narrow io types ( #9737 )
2023-02-15 10:43:39 +01:00
github-actions[bot]
c50ceada0f
[stubsabot] Bump setuptools to 67.3.* ( #9738 )
2023-02-15 08:15:49 +01:00
Avasam
140bba3425
Add comments when subclassing Any ( #9732 )
2023-02-14 14:11:56 +01:00