Sebastian Rittau
da50b5c411
Move error handling to main function ( #13630 )
...
* This makes is easier to call `run_stubtest()` manually, for
example when testing the script - no need to construct
an `ArgumentParser` instance.
* This concentrates argument error handling in the
`main()` function and prevents an unexpected process exit
when calling `run_stubtest()`.
2025-03-16 20:40:38 +01:00
Sebastian Rittau
acac58ad4a
[CI] Quieten apt-get ( #13629 )
...
Don't print progress when installing packages via apt-get. This
prevent spurious output in CI logs.
2025-03-16 08:06:43 -07:00
Sebastian Rittau
02aee8dc68
[google-cloud-ndb] Remove unncessary stubtest requirements ( #13631 )
2025-03-16 15:33:55 +01:00
Joren Hammudoglu
8064d995e7
Some minor statistics.NormalDist adjustments ( #13626 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2025-03-15 19:07:47 +00:00
Joren Hammudoglu
5ba2e4989e
Add types.UnionType.__parameters__ ( #13628 )
...
annotate the `types.UnionType.__parameters__` property
2025-03-15 17:51:36 +00:00
Ageev Maxim
cdfb10c340
[protobuf] Add missing properties for class FieldDescriptor ( #13625 )
2025-03-14 21:24:14 +01:00
Avasam
0b8dcfc00b
Fix mypy test temporary config file creation ( #13620 )
2025-03-14 11:55:01 +01:00
Abdrakhman
5c85697da7
Set hatchling as the build system for ts_utils ( #13622 )
2025-03-13 12:03:50 +03:00
Avasam
8bc9a65367
Allow uv run to be used without --no-project ( #13599 )
2025-03-12 13:33:04 +01:00
Avasam
f6e99d20b5
Bump setuptools to 76.0.0 ( #13614 )
2025-03-12 13:25:47 +01:00
Joren Hammudoglu
28106bcb73
Annotate pathlib.Path.{owner,group,is_mount} on windows ( #13613 )
2025-03-11 18:45:40 +01:00
Dan Pascu
d04d532337
Fix return type for GenericAlias.__origin__ for type aliases parameterised with a type ( #13619 )
2025-03-11 17:11:19 +01:00
Kyllian Broers
1a9eef437a
[networkx] Fix argument type of node_connected_component ( #13612 )
2025-03-11 11:52:29 +01:00
Max Muoto
2e76963775
Fix asyncio executor types ( #13616 )
...
Update type annotations for `run_in_executor` and `set_default_executor` in asyncio event loop interfaces to use more specific executor types from `concurrent.futures`
2025-03-11 11:45:28 +01:00
Avasam
1f2ceccfae
distutils: Allow overriding Command and Distribution boolean attributes with actual bool in subclasses ( #13615 )
2025-03-11 11:18:03 +01:00
github-actions[bot]
041580d6d6
[stubsabot] Bump ibm-db to 3.2.6 ( #13610 )
2025-03-10 06:41:10 +01:00
Avasam
c68ecd75f5
Bump pywin32 to 309 ( #13607 )
2025-03-10 06:34:42 +01:00
Daksh2000
59717f4d0a
Fix override issue in GeoDataFrame.astype return type ( #13606 )
2025-03-09 14:25:56 +01:00
Joren Hammudoglu
ab46a26de8
Annotate unittest.TestCase.__init_subclass__ ( #13602 )
2025-03-09 13:47:43 +01:00
Stephen Morton
846d167f51
Fix default of dict.get ( #13222 )
2025-03-09 13:44:27 +01:00
Avasam
0cdb5e969f
Mention uv for the initial install in CONTRIBUTING.md ( #13595 )
2025-03-08 10:59:07 +01:00
Danny Yang
01ed309ff1
Update pycurl to 7.45.6 ( #13600 )
2025-03-07 20:40:31 -08:00
Sebastian Rittau
b4c656a6f7
Remove LD_LIBRARY_PATH before running gdb ( #13594 )
...
Suggestion by @peace-maker
2025-03-08 00:09:47 +01:00
Sabfo
a91c147f80
PyInstaller: Complete types in splash.pyi ( #13568 )
...
---------
Co-authored-by: Avasam <samuel.06@hotmail.com >
2025-03-07 16:32:22 -05:00
Stephen Morton
56fa438a27
Decouple types.DynamicClassAttribute from property ( #13276 )
2025-03-07 19:08:27 +01:00
Kanishk Pachauri
7cb3eef00c
Update _socket.pyi to include tuple[int, bytes] address format ( #13596 )
2025-03-07 19:05:24 +01:00
sobolevn
0b6e42c59c
Bump braintree to 4.34.* ( #13592 )
2025-03-07 11:33:42 +01:00
Joakim Soderlund
a1c28f71da
Mark database parameters in Peewee as optional ( #13442 )
...
Peewee injects database arguments using a decorator whenever a model
or query has a bound connection. Passing the argument is therefore not
required, even for some function parameters without default values.
2025-03-07 11:30:50 +01:00
Kanishk Pachauri
2f8de52edf
Fix parameter type annotations in _cffi_backend stub. ( #13590 )
2025-03-06 19:03:01 +01:00
Sebastian Rittau
90d89f8983
Remove redundant version_info checks ( #13588 )
...
`zipfile._path` was split into a separate module in Python 3.12.
Originally, we just copied the definition for `CompleteDirs` and `Path`
from `zipfile.pyi` to `zipfile/_path/__init__.pyi` and left the now
defunct version_info branches. This removes the unnecessary branches
from the respective stub files.
2025-03-06 17:02:48 +01:00
Sebastian Rittau
5f1fd23bd2
Rework tarfile.open/TarFile.open ( #13177 )
...
* Copy overloads of `open()` to `TarFile.open()`.
* Replace remaining instances of `IO` with `_Fileobj`.
* Replace `open()` with alias to `TarFile.open()` to match implementation.
2025-03-06 13:54:35 +01:00
github-actions[bot]
6cecf191a3
[stubsabot] Bump fanstatic to 1.5.* ( #13586 )
2025-03-06 10:46:48 +01:00
Sebastian Rittau
ba85e0c282
Fix tarfile.open overloads ( #13441 )
...
* Allow `compresslevel` argument for modes `w|gz` and `w|bz2`.
* Remove `preset` argument from modes where it's not allowed.
Closes : #13440
2025-03-06 10:39:56 +01:00
Kanishk Pachauri
91a90ed1d9
Fix: OAuth1 type hints to include realm parameter ( #13579 )
2025-03-05 20:54:47 +01:00
sobolevn
3ac6c388c6
Update tools versions in stubtest workflow ( #13582 )
2025-03-05 14:24:56 +01:00
sobolevn
e951ca9760
Bump pynput to 1.8.* ( #13583 )
2025-03-05 12:00:36 +01:00
sobolevn
8a21b854fa
Bump mock to 5.2.* ( #13581 )
2025-03-05 08:57:35 +01:00
Avasam
58a4c08ab0
shutil.which cannot return PathLike, and fails with cmd: PathLike on Windows Python < 3.12 (#13580 )
2025-03-05 08:54:48 +01:00
github-actions[bot]
94be358199
[stubsabot] Bump zstd to 1.5.6.6 ( #13584 )
...
Release: https://pypi.org/pypi/zstd/1.5.6.6
Homepage: https://github.com/sergey-dryabzhinsky/python-zstd
Repository: https://github.com/sergey-dryabzhinsky/python-zstd
Typeshed stubs: https://github.com/python/typeshed/tree/main/stubs/zstd
Diff: https://github.com/sergey-dryabzhinsky/python-zstd/compare/v1.5.6.5...v1.5.6.6
Stubsabot analysis of the diff between the two releases:
- Total lines of Python code added: 12.
- Total lines of Python code deleted: 11.
If stubtest fails for this PR:
- Leave this PR open (as a reminder, and to prevent stubsabot from opening another PR)
- Fix stubtest failures in another PR, then close this PR
Note that you will need to close and re-open the PR in order to trigger CI
Co-authored-by: stubsabot <>
2025-03-05 07:42:04 +01:00
Philipp A.
714c99bbdb
Fix singledispatch register signature ( #13578 )
2025-03-04 14:52:07 +01:00
Avasam
63e6ea8821
Enable Ruff PLE (Pylint Error) ( #13305 )
2025-03-04 12:11:32 +01:00
Avasam
641ca188ef
Remove setuptools/pkg_resources ( #13369 )
2025-03-04 12:11:10 +01:00
Alex Waygood
e4a8707e9c
Use Stricter pyright settings in CI for watchpoints ( #13577 )
...
The stubs are fully annotated. Fixes https://github.com/AlexWaygood/typeshed-stats/issues/323
2025-03-04 09:31:12 +01:00
renovate[bot]
111eae935c
Update dependency pyright to v1.1.396 ( #13576 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-04 08:10:35 +01:00
bzoracler
a3a17b0f0e
Add stubs for watchpoints ( #13248 )
2025-03-03 15:17:40 -08:00
Avasam
6f98c59f93
Enable Ruff PLR (Pylint Refactor) ( #13307 )
2025-03-03 18:03:34 +01:00
Sebastian Rittau
3e83e42a0f
Update pyright to v1.1.395; disable a pow() check ( #13564 )
...
pyright and mypy disagree about the exact type due to differing
overloads handling.
---------
Co-authored-by: Avasam <samuel.06@hotmail.com >
2025-03-03 11:49:41 -05:00
cake-monotone
9f11db4296
Improving type support for math.prod ( #13572 )
2025-03-03 16:41:34 +01:00
Stephen Morton
175e700656
Push items down from socketserver.BaseServer to TCPServer ( #13082 )
...
Cf. https://github.com/python/cpython/issues/127209
2025-03-03 16:38:43 +01:00
iconchris
336140b117
Add edges() override in MultiGraph to support the "keys" argument ( #13567 )
2025-03-03 16:03:41 +01:00