1. 03 Jan, 2023 5 commits
  2. 02 Jan, 2023 1 commit
  3. 30 Dec, 2022 1 commit
  4. 20 Dec, 2022 4 commits
  5. 19 Dec, 2022 1 commit
  6. 16 Dec, 2022 1 commit
  7. 15 Dec, 2022 1 commit
  8. 14 Dec, 2022 1 commit
  9. 13 Dec, 2022 1 commit
  10. 10 Dec, 2022 1 commit
  11. 09 Dec, 2022 4 commits
    • Add flake8 `B905` to `extend-ignore` in setup.cfg (#4391) · 663b86c2
      * Add flake8 `--ignore=B905,N818,W503`
      
      * Add B905 to `extend-ignore` in setup.cfg (thanks @Skylion007), leave .pre-commit-config.yaml as-is on master.
      Ralf W. Grosse-Kunstleve committed
    • Correct class names for KeysView, ValuesView and ItemsView in bind_map (#4353) · 9db98801
      * Create templated abstract classes KeysView, ValuesView and ItemsView, and implement them on-the-fly when wrapping any specific map type
      
      * We don't want to wrap different ValuesView objects for double values and const double, for example, as both wrappers will be named ValuesView[float]
      
      * Fallback to C++ names if key or values types are not wrapped
      
      * Added a test for .keys(), .values() and .items() returning the same types for similarly-typed maps
      
      * Fixed wrong use of auto in a declarator list: the two descriptions might have different types
      
      * Fixes for clang-tidy issues: explicit single-argument constructor, using the 'override' keyword when overriding functions
      
      * Bugfix for old versions of clang++, which seem to have trouble with the struct being defined inside a module, which was also needlessly ugly anyway
      
      * Bugfix for clang++, which doesn't have some of the names in runtime uness they are specified to be static
      
      * A fix for clang-tidy performance-inefficient-string-concatenation issues - I personally think this looks uglier, but it's probably worth it for clang-tidy to be happy
      
      * Possible fix for clang++ linking issues - make the descriptions static constexpr to make sure they are known before linking
      
      * Correct names for previously-wrapped types as keys/values of maps
      
      * Bugfix - typo in type info names which caused things to segfault
      
      * Apply suggestions from code review
      
      Co-authored-by: Aaron Gokaslan <skylion.aaron@gmail.com>
      
      * Use detail::remove_cvref_t instead of doing remove_cv and remove_reference separately
      
      * Avoid names with double underscore, as they are reserved
      
      * Improved testing for KeysView, ValuesView and ItemsView: check type names + stricter asserts
      
      * Moved description logic to helper function in type_caster_base.h
      
      * style: pre-commit fixes
      
      * Fix a clang-tidy issue: do not use 'else' after 'return'
      
      * Apply suggestion by @Skylion007, with additional trivial simplification.
      
      Co-authored-by: Amir <aimir@local>
      Co-authored-by: aimir <aimir@localhost>
      Co-authored-by: Aaron Gokaslan <skylion.aaron@gmail.com>
      Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
      Co-authored-by: Ralf W. Grosse-Kunstleve <rwgk@google.com>
      aimir committed
    • Add option for enable/disable enum members in docstring. (#2768) · 00126859
      * Add option for enable/disable enum members in docstring
      
      * Add tests for disable enum members docstring option
      
      * Add docstring options to documentation
      
      * style: pre-commit fixes
      
      * Fix typos in documentation
      
      * Improve documentation wording
      
      * Apply suggestions by @Skylion007
      
      Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
      Co-authored-by: Ralf W. Grosse-Kunstleve <rwgk@google.com>
      Frank committed
    • `pybind11::handle` `inc_ref()` & `dec_ref()` `PyGILState_Check()` **excluding** `nullptr` (#4246) · 65374c8e
      * pybind11/pytypes.h `inc_ref()`, `dec_ref()` `PyGILState_Check()` **excluding** `nullptr`
      
      Guarded by `PYBIND11_ASSERT_GIL_HELD_INCREF_DECREF`
      
      * Disable `PYBIND11_ASSERT_GIL_HELD_INCREF_DECREF` for PyPy under Windows.
      
      * Add reference to PR #4268 (PyPy Windows)
      Ralf W. Grosse-Kunstleve committed
  12. 07 Dec, 2022 1 commit
  13. 06 Dec, 2022 2 commits
  14. 05 Dec, 2022 3 commits
  15. 01 Dec, 2022 4 commits
  16. 28 Nov, 2022 1 commit
  17. 25 Nov, 2022 1 commit
  18. 23 Nov, 2022 1 commit
  19. 22 Nov, 2022 1 commit
  20. 12 Nov, 2022 2 commits
  21. 10 Nov, 2022 1 commit
  22. 02 Nov, 2022 1 commit
    • Fix functional.h bug + introduce test to verify that it is fixed (#4254) · ee2b5226
      * Illustrate bug in functional.h
      
      * style: pre-commit fixes
      
      * Make functional casting more robust / add workaround
      
      * Make function_record* casting even more robust
      
      * See if this fixes PyPy issue
      
      * It still fails on PyPy sadly
      
      * Do not make new CTOR just yet
      
      * Fix test
      
      * Add name to ensure correctness
      
      * style: pre-commit fixes
      
      * Clean up tests + remove ifdef guards
      
      * Add comments
      
      * Improve comments, error handling, and safety
      
      * Fix compile error
      
      * Fix magic logic
      
      * Extract helper function
      
      * Fix func signature
      
      * move to local internals
      
      * style: pre-commit fixes
      
      * Switch to simpler design
      
      * style: pre-commit fixes
      
      * Move to function_record
      
      * style: pre-commit fixes
      
      * Switch to internals, update tests and docs
      
      * Fix lint
      
      * Oops, forgot to resolve last comment
      
      * Fix typo
      
      * Update in response to comments
      
      * Implement suggestion to improve test
      
      * Update comment
      
      * Simple fixes
      
      Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
      Co-authored-by: Aaron Gokaslan <aaronGokaslan@gmail.com>
      Ethan Steinberg committed
  23. 01 Nov, 2022 1 commit