-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[smart_holder] git merge master #5444
Commits on Nov 11, 2024
-
Add type hints for args and kwargs (pybind#5357)
* Allow subclasses of args and kwargs The current implementation disallows subclasses of args and kwargs * Added object type hint to args and kwargs * Added type hinted args and kwargs classes * Changed default type hint to typing.Any * Removed args and kwargs type hint * Updated tests Modified the tests from pybind#5381 to use the real Args and KWArgs classes * Added comment
Configuration menu - View commit details
-
Copy full SHA for 6d98d4d - Browse repository at this point
Copy the full SHA 6d98d4dView commit details -
feat(typing): allow annotate methods with
pos_only
when only have t……he `self` argument (pybind#5403) * feat: allow annotate methods with `pos_only` when only have the `self` argument * chore(typing): make arguments for auto-generated dunder methods positional-only * docs: add more comments to improve readability * style: fix nit suggestions * Add test_self_only_pos_only() in tests/test_methods_and_attributes * test: add docstring tests for generated dunder methods * test: remove failed tests * fix(test): run `gc.collect()` three times for refcount tests --------- Co-authored-by: Ralf W. Grosse-Kunstleve <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 7f94f24 - Browse repository at this point
Copy the full SHA 7f94f24View commit details
Commits on Nov 12, 2024
-
chore(deps): bump actions/attest-build-provenance in the actions group (
pybind#5440) Bumps the actions group with 1 update: [actions/attest-build-provenance](https://github.com/actions/attest-build-provenance). Updates `actions/attest-build-provenance` from 1.4.3 to 1.4.4 - [Release notes](https://github.com/actions/attest-build-provenance/releases) - [Changelog](https://github.com/actions/attest-build-provenance/blob/main/RELEASE.md) - [Commits](actions/attest-build-provenance@1c608d1...ef24412) --- updated-dependencies: - dependency-name: actions/attest-build-provenance dependency-type: direct:production update-type: version-update:semver-patch dependency-group: actions ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 0ed20f2 - Browse repository at this point
Copy the full SHA 0ed20f2View commit details
Commits on Nov 14, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 08095d9 - Browse repository at this point
Copy the full SHA 08095d9View commit details
Commits on Nov 16, 2024
-
Add support for array_t<handle> and array_t<object> (pybind#5427)
* Add support for array_t<handle> and array_t<object> * style: pre-commit fixes * Remove loops that aren't strictly needed * Fix compiler warning * Disable GC-dependent checks when running on pypy or graalpy * style: pre-commit fixes * Remove PyValueHolder counter again * Move tests to templates to avoid code duplication * Rerun pre-commit * Restore import that was erroneously removed by pre-commit * Reduce code duplication with more template magic * Bring back `.attr("value")` in `return_array_cpp_loop()` This was meant to further stress-test correctness of refcount handling. All modified test functions were manually leak-checked (`while True`, top command, Python 3.12.3, Ubuntu 24.01, gcc 13.2.0). --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Ralf W. Grosse-Kunstleve <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b9fb316 - Browse repository at this point
Copy the full SHA b9fb316View commit details
Commits on Nov 17, 2024
-
Add dtype::normalized_num and dtype::num_of (pybind#5429)
* Add dtype::normalized_num and dtype::num_of * Fix compiler warning and improve NumPy 1.x compatibility * Fix clang-tidy warning * Fix another clang-tidy warning * Add extra comment
Configuration menu - View commit details
-
Copy full SHA for f41dae3 - Browse repository at this point
Copy the full SHA f41dae3View commit details -
Configuration menu - View commit details
-
Copy full SHA for edad3ef - Browse repository at this point
Copy the full SHA edad3efView commit details