pybind11/include/pybind11
gentlegiantJGC 7e418f4924
Allow subclasses of py::args and py::kwargs (#5381)
* Allow subclasses of py::args and py::kwargs

The current implementation does not allow subclasses of args or kwargs.
This change allows subclasses to be used.

* Added test case

* style: pre-commit fixes

* Added missing semi-colons

* style: pre-commit fixes

* Added handle_type_name

* Moved classes outside of function

* Added namespaces

* style: pre-commit fixes

* Refactored tests

Added more tests and moved tests to more appropriate locations.

* style: pre-commit fixes

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-09-24 10:28:22 -07:00
..
detail Added exception translator specific mutex used with try_translate_exceptions (#5362) 2024-09-17 09:47:20 -07:00
eigen fix: never use .. in a header include (#5321) 2024-08-21 13:16:49 -04:00
stl fix: never use .. in a header include (#5321) 2024-08-21 13:16:49 -04:00
attr.h Elide to-python conversion of setter return values (#4621) 2023-05-08 10:13:54 -07:00
buffer_info.h chore(deps): update pre-commit hooks (#5084) 2024-04-02 11:14:08 -04:00
cast.h Allow subclasses of py::args and py::kwargs (#5381) 2024-09-24 10:28:22 -07:00
chrono.h chore: drop Python 3.5 (#3719) 2022-02-11 19:06:16 -05:00
common.h Add a dummy common.h header with a deprecation warning 2017-09-06 15:22:26 +02:00
complex.h Fully-automatic clang-format with include reordering (#3713) 2022-02-10 12:17:07 -08:00
eigen.h First draft of Eigen::Tensor support (#4201) 2022-10-18 16:54:16 -07:00
embed.h feat: remove Python 3.7 support (#5191) 2024-07-30 09:18:35 -07:00
eval.h feat: remove Python 3.7 support (#5191) 2024-07-30 09:18:35 -07:00
functional.h Add type_caster_std_function_specializations feature. (#4597) 2024-08-09 13:28:12 -07:00
gil_safe_call_once.h fix: make gil_safe_call_once thread-safe in free-threaded CPython (#5246) 2024-07-16 11:06:54 -07:00
gil.h feat: remove Python 3.7 support (#5191) 2024-07-30 09:18:35 -07:00
iostream.h chore: add err guard to capsule destructor and add a move to iostream (#3958) 2022-05-27 14:32:57 -04:00
numpy.h clang-tidy upgrade (to version 18) (#5272) 2024-07-29 11:10:03 -07:00
operators.h Reproducer and fix for issue encountered in smart_holder update. (#4228) 2022-10-09 21:50:35 -07:00
options.h Add option for enable/disable enum members in docstring. (#2768) 2022-12-08 23:10:10 -08:00
pybind11.h Added exception translator specific mutex used with try_translate_exceptions (#5362) 2024-09-17 09:47:20 -07:00
pytypes.h fix: <ranges> support for py::tuple and py::list (#5314) 2024-08-21 15:33:06 -04:00
stl_bind.h clang-tidy upgrade (to version 18) (#5272) 2024-07-29 11:10:03 -07:00
stl.h Backport of https://github.com/google/pywrapcc/pull/30034 (#5305) 2024-08-14 22:30:29 -07:00
type_caster_pyobject_ptr.h Add type_caster<PyObject> (#4601) 2023-05-07 10:15:53 -07:00
typing.h fix: using __cpp_nontype_template_args instead of __cpp_nontype_template_parameter_class (#5330) 2024-08-25 23:36:03 -04:00
warnings.h Warnings wrappers to use from C++ (#5291) 2024-08-28 20:55:50 -07:00