76 Commits (master)

Author SHA1 Message Date
Michael Carlstrom c2b32b1e3b
fix(types): type hints from future python versions (#5693) 1 month ago
Henry Schreiner 33fb53335e fix: C++20 in Windows 1 month ago
gentlegiantJGC 67424358f4
fix(types): add typing and collections.abc module prefix (#5663) 2 months ago
Bryn Lloyd bc4a66dff0
fix: provide useful behavior of default `py::slice` (#5620) 3 months ago
Michael Carlstrom 566894d5f1
Fix null pointer dereference in `attr_with_type_hint` (#5576) 4 months ago
Tim Ohliger 1b7aa0bb66
feat: rework of arg/return type hints to support .noconvert() (#5486) 6 months ago
Michael Carlstrom cf020a1de2
feat(types) Allow setting types for attributes (#5460) 7 months ago
Tim Ohliger 1d09fc8300
Option for arg/return type hints and correct typing for std::filesystem::path (#5450) 7 months ago
Boris Dalstein f2907651fa
Fix #5399: iterator increment operator does not skip first item (#5400) 9 months ago
ObeliskGate 2baf9d6833
fix: `<ranges>` support for `py::tuple` and `py::list` (#5314) 11 months ago
Michael Carlstrom 08f946a431
fix: add guard for GCC <10.3 on C++20 (#5205) 1 year ago
Michael Carlstrom 4bd538a40a
feat(types): add support for Typing.Callable Special Case (#5202) 1 year ago
Michael Carlstrom 2be85c6041
feat(types): adds support for TypeGuard and TypeIs (#5194) 1 year ago
Michael Carlstrom 26281c7986
feat(types): adds support for Never and NoReturn from python Typing (#5193) 1 year ago
Michael Carlstrom 183059f9a4
feat(types): add support for typing.Literal type (#5192) 1 year ago
Michael Carlstrom aebcd704d2
Add TypeVars / method generics typing (#5167) 1 year ago
Michael Carlstrom 7c4ac91d75
Add type[T] support to typing.h (#5166) 1 year ago
Michael Carlstrom 68405a1141
Add `Union` and `Optional` to typing.h (#5165) 1 year ago
Thierry Coppey 35ff42b56e
Add a pybind function to clear a list. (#5153) 1 year ago
Ralf W. Grosse-Kunstleve 0efff79f01
Bug fixes: Add missing `handle_type_name` specializations. (#5073) 1 year ago
Jason Watson 65370f330e
Create handle_type_name specialization to type-hint variable length tuples (#5051) 1 year ago
Henry Schreiner 3aece819fd
chore: update hooks and Ruff config (#4904) 2 years ago
Sergei Izmailov 8c7b8dd0ae
fix: Missing typed variants of `iterator` and `iterable` (#4832) 2 years ago
Ralf W. Grosse-Kunstleve 690a115d84
Add `py::set_error()`, use in updated `py::exception<>` documentation (#4772) 2 years ago
Dustin Spicuzza f8703154ec
Provide better type hints for a variety of generic types (#4259) 2 years ago
Ralf W. Grosse-Kunstleve 2fb3d7cbde
Trivial refactoring to make the capsule API more user friendly. (#4720) 2 years ago
Ralf W. Grosse-Kunstleve f12e098f1d
Fix `detail::obj_class_name()` to work correctly for meta classes. (#4436) 3 years ago
Aaron Gokaslan b07223fa69
fix: improve bytes to str decoding error handling (#4294) 3 years ago
Aaron Gokaslan b926396bdf
bugfix: py contains raises errors when appropiate (#4209) 3 years ago
Daniel Galvez 7c6f2f80a7
fix: PyCapsule_GetDestructor is allowed to return a nullptr destructor (#4221) 3 years ago
Aaron Gokaslan b884b9dc6b
chore: Add pytests for constructing pytypes from iterable (#4138) 3 years ago
Aaron Gokaslan f47f1edfe8
Fix #3812 and fix const of inplace assignments (#4065) 3 years ago
Ralf W. Grosse-Kunstleve 1d81191077
Disable implicit conversion of `0` to `pybind11::handle`. (#4008) 3 years ago
Aaron Gokaslan 58802de41b
perf: Add object rvalue overload for accessors. Enables reference stealing (#3970) 3 years ago
Ralf W. Grosse-Kunstleve 9f7b3f735a
addl unit tests for PR #3970 (#3977) 3 years ago
Ed Catmur 68a0b2dfd8
Add anyset & frozenset, enable copying (cast) to std::set (#3901) 3 years ago
Oleksandr Pavlyk fa98804a07
Adds set_name method of pybind11::capsule class (#3866) 3 years ago
Oleksandr Pavlyk 91a6e129d9
PYBIND11_OBJECT_CVT should use namespace for error_already_set() (#3797) 3 years ago
Ralf W. Grosse-Kunstleve 6493f496e3
Python 2 removal part 1: tests (C++ code is intentionally ~untouched) (#3688) 3 years ago
Ralf W. Grosse-Kunstleve ec24786eab
Fully-automatic clang-format with include reordering (#3713) 3 years ago
Ralf W. Grosse-Kunstleve 7769e7719c
clang-tidy readability-qualified-auto (#3702) 3 years ago
Ralf W. Grosse-Kunstleve ddbc74c674 Adding .clang-tidy readability-braces-around-statements option. 3 years ago
Sergei Izmailov 5194855900
Render `py::bool_` and `py::float_` without `_` in docstrings (#3622) 4 years ago
Henry Schreiner f791dc8648
fix: deprecate make_simple_namespace, fix Python 3.11 (#3374) 4 years ago
Ralf W. Grosse-Kunstleve 6c65ab5950
Follow-on to PR #3254, to address user code breakages. (#3263) 4 years ago
Ralf W. Grosse-Kunstleve 777352fcd1
Adding `ssize_t_cast` to support passing `size_t` or `ssize_t` values where `ssize_t` is needed. (#3219) 4 years ago
Jouke Witteveen 031a700dfd
Add make_simple_namespace function and tests (#2840) 4 years ago
Shane Loretz 7331d381af
Raise codec errors when casting to std::string (#2903) 4 years ago
Ralf W. Grosse-Kunstleve 2d468697d9
NOLINT reduction (#3096) 4 years ago
Aaron Gokaslan b5357d1fa8
fix(clang-tidy): Enable clang-tidy else-after-return and redundant void checks (#3080) 4 years ago