1. 16 Oct, 2020 2 commits
    • Yannick Jadoul's avatar
      fix: test_factory_constructors.py failure triggered by test_register_duplicate_class (#2564) · 6364b732
      Yannick Jadoul authored
      * Demonstrate test_factory_constructors.py failure without functional changes from #2335
      
      * Revert "Demonstrate test_factory_constructors.py failure without functional changes from #2335"
      
      This reverts commit ca33a8021fc2a3617c3356b188796528f4594419.
      
      * Fix test crash where registered Python type gets garbage collected
      
      * Clean up some more internal structures when class objects go out of scope
      
      * Reduce length of std::erase_if-in-C++20 comment
      
      * Clean up code for cleaning up type internals
      
      * Move cleaning up of type info in internals to tp_dealloc on pybind11_metaclass
      6364b732
    • Henry Schreiner's avatar
      style: use Black everywhere (#2594) · c50f90ec
      Henry Schreiner authored
      * style: use Black everywhere
      
      * style: minor touchup from review
      c50f90ec
  2. 15 Oct, 2020 9 commits
  3. 14 Oct, 2020 5 commits
  4. 13 Oct, 2020 8 commits
  5. 12 Oct, 2020 5 commits
  6. 11 Oct, 2020 1 commit
  7. 09 Oct, 2020 9 commits
  8. 08 Oct, 2020 1 commit
    • Yannick Jadoul's avatar
      Check scope's __dict__ instead of using hasattr when registering classes and exceptions (#2335) · 71aea49b
      Yannick Jadoul authored
      * Check scope's __dict__ instead of using hasattr when registering classes and exceptions, to allow registering the same name in a derived class scope
      
      * Extend test_base_and_derived_nested_scope test
      
      * Add tests on error being thrown registering duplicate classes
      
      * Circumvent bug with combination of test_class.py::test_register_duplicate_class and test_factory_constructors.py::test_init_factory_alias
      71aea49b