pybind11/include/pybind11
Xuehai Pan 7f94f24d64
feat(typing): allow annotate methods with pos_only when only have the self argument (#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 <rgrossekunst@nvidia.com>
2024-11-11 15:35:28 -08:00
..
conduit Factor out pybind11/conduit/pybind11_platform_abi_id.h (#5375) 2024-11-10 12:17:35 -08:00
detail feat(typing): allow annotate methods with pos_only when only have the self argument (#5403) 2024-11-11 15:35:28 -08:00
eigen chore(deps): update pre-commit hooks (#5432) 2024-11-06 11:19:25 -08: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 Add type hints for args and kwargs (#5357) 2024-11-11 14:51:01 -08: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 Add support for GraalPy (#5380) 2024-10-07 14:12:04 -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 docs/advanced A document about deadlock potential with C++ statics (#5394) 2024-10-08 10:51:20 -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 feat(typing): allow annotate methods with pos_only when only have the self argument (#5403) 2024-11-11 15:35:28 -08:00
pytypes.h Add type hints for args and kwargs (#5357) 2024-11-11 14:51:01 -08:00
stl_bind.h Print key in KeyError in map.__getitem__/__delitem__ (#5397) 2024-10-08 10:49:35 -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