1. 03 Oct, 2023 1 commit
  2. 27 Sep, 2023 2 commits
  3. 25 Sep, 2023 1 commit
  4. 15 Sep, 2023 2 commits
  5. 14 Sep, 2023 1 commit
  6. 12 Sep, 2023 3 commits
  7. 07 Sep, 2023 1 commit
  8. 06 Sep, 2023 2 commits
  9. 01 Sep, 2023 1 commit
  10. 31 Aug, 2023 1 commit
  11. 30 Aug, 2023 2 commits
  12. 23 Aug, 2023 1 commit
  13. 15 Aug, 2023 4 commits
    • Remove newlines from docstring signature (#4735) · b9359cea
      * Remove newlines from docstring signature
      
      * Jean/dev (#1)
      
      Replace newlines in arg values with spaces
      
      * style: pre-commit fixes
      
      * Don't use std::find_if for C++ 11 compatibility
      
      * Avoid implicit char to bool conversion
      
      * Test default arguments for line breaks
      
      * style: pre-commit fixes
      
      * Separate Eigen tests
      
      * style: pre-commit fixes
      
      * Fix merge
      
      * Try importing numpy
      
      * Avoid unreferenced variable in catch block
      
      * style: pre-commit fixes
      
      * Update squash function
      
      * Reduce try block
      
      * Additional test cases
      
      * style: pre-commit fixes
      
      * Put statement inside braces
      
      * Move string into function body
      
      * Rename repr for better readability. Make constr explicit.
      
      * Add multiline string default argument test case
      
      * style: pre-commit fixes
      
      * Add std namespace, do not modify string repr
      
      * Test for all space chars, test str repr not modified
      
      ---------
      
      Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
      Jean Elsner committed
    • Fix grammar in functions.rst (#4791) · f47ff328
      The previous sentence had an extra "a" before "several", which isn't right.
      Kenji committed
    • Migrate to readthedocs configuration file v2¶ (#4789) · add281a2
      * Copy of recommded readthedocs configuration file v2
      
      * [ci skip] It is now requirements (not requirements_file)
      Ralf W. Grosse-Kunstleve committed
  14. 10 Aug, 2023 1 commit
  15. 08 Aug, 2023 2 commits
    • Add `py::set_error()`, use in updated `py::exception<>` documentation (#4772) · 690a115d
      * Copy clang 17 compatibility fixes from PR #4762 to a separate PR.
      
      * static py::exception<> -> static py::handle
      
      * Add `py::set_error()` but also try the suggestion of @malfet (https://github.com/pytorch/pytorch/pull/106401#pullrequestreview-1559961407).
      
      * clang 17 compatibility fixes (#4767)
      
      * Copy clang 17 compatibility fixes from PR #4762 to a separate PR.
      
      * Add gcc:13 C++20
      
      * Add silkeh/clang:16-bullseye C++20
      
      * chore(deps): update pre-commit hooks (#4770)
      
      updates:
      - [github.com/psf/black: 23.3.0 → 23.7.0](https://github.com/psf/black/compare/23.3.0...23.7.0)
      - [github.com/astral-sh/ruff-pre-commit: v0.0.276 → v0.0.281](https://github.com/astral-sh/ruff-pre-commit/compare/v0.0.276...v0.0.281)
      - [github.com/asottile/blacken-docs: 1.14.0 → 1.15.0](https://github.com/asottile/blacken-docs/compare/1.14.0...1.15.0)
      
      Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
      
      * docs: Remove upper bound on pybind11 in example pyproject.toml for setuptools (#4774)
      
      * docs: Remove upper bound on pybind11 in example pyproject.toml for setuptools
      
      * Update docs/compiling.rst
      
      ---------
      
      Co-authored-by: Henry Schreiner <HenrySchreinerIII@gmail.com>
      
      * Provide better type hints for a variety of generic types (#4259)
      
      * Provide better type hints for a variety of generic types
      
      * Makes better documentation
      * tuple, dict, list, set, function
      
      * Move to py::typing
      
      * style: pre-commit fixes
      
      * Update copyright line with correct year and actual author. The author information was copy-pasted from the git log output.
      
      ---------
      
      Co-authored-by: Ralf W. Grosse-Kunstleve <rwgk@google.com>
      Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
      
      * Use `py::set_error()` everywhere possible (only one special case, in common.h).
      Overload `py::set_error(py::handle, py::handle)`.
      Change back to `static py::handle exc = ... .release();`
      Deprecate `py::exception<>::operator()`
      
      * Add `PYBIND11_WARNING_DISABLE` for INTEL and MSVC (and sort alphabetically).
      
      * `PYBIND11_WARNING_DISABLE_INTEL(10441)` does not work.
      
      For ICC only, falling back to the recommended `py::set_error()` to keep the testing simple.
      
      It is troublesome to add `--diag-disable=10441` specifically for test_exceptions.cpp, even that is non-ideal because it covers the entire file, not just the one line we need it for, and the value of exercising the trivial deprecated `operator()` on this one extra platform is practically zero.
      
      * Fix silly oversight.
      
      * NVHPC 23.5.0 generates deprecation warnings. They are currently not treated as errors, but falling back to using `py::set_error()` to not have to deal with that distraction.
      
      ---------
      
      Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
      Co-authored-by: Keto D. Zhang <keto.zhang@gmail.com>
      Co-authored-by: Henry Schreiner <HenrySchreinerIII@gmail.com>
      Co-authored-by: Dustin Spicuzza <dustin@virtualroadside.com>
      Ralf W. Grosse-Kunstleve committed
  16. 04 Aug, 2023 4 commits
  17. 03 Aug, 2023 1 commit
  18. 23 Jul, 2023 1 commit
    • Add command to check for vX.Y.Z tag vs pybind11/_version.py consistency. (#4757) · f3e06028
      * Add command to check for vX.Y.Z tag vs pybind11/_version.py consistency. Piggy-backing hints for converting changelog to release message.
      
      * Simpler way of double-checking version number in sources vs. git tag
      
      * Even simpler.
      
      * Fix rst rendering (hopefully) and remove stray dots.
      
      * [ci skip] Trying more to make GitHub rst renderer show this nicely.
      
      * [ci skip] Fix up RST rendering issues.
      
      Lesson learned:
      
      This is NOT GOOD:
      
      ```
      - Bullet nesting level 1.
          - Bullet nesting level 2.
      ```
      
      This is BETTER:
      
      ```
      - Bullet nesting level 1.
        - Bullet nesting level 2.
      ```
      
      Also consistently adding empty lines between bullet points, to make the .rst
      file easier to read.
      
      Also piggy-backing a few very minor enhancements.
      Ralf W. Grosse-Kunstleve committed
  19. 17 Jul, 2023 2 commits
  20. 15 Jul, 2023 2 commits
  21. 14 Jul, 2023 2 commits
  22. 12 Jul, 2023 3 commits