91 Commits (master)

Author SHA1 Message Date
Michael Carlstrom c2b32b1e3b
fix(types): type hints from future python versions (#5693) 1 month ago
gentlegiantJGC 67424358f4
fix(types): add typing and collections.abc module prefix (#5663) 2 months ago
Henry Schreiner 094343c74a
fix: support Python 3.14 (#5646) 2 months ago
Bryn Lloyd bc4a66dff0
fix: provide useful behavior of default `py::slice` (#5620) 3 months ago
Tim Ohliger ee04df0d02
Updated STL casters and py::buffer to use collections.abc (#5566) 3 months ago
Ralf W. Grosse-Kunstleve 48eb5ad9b9
Remove PyPy 3.8 and 3.9 testing. Make a pass through the entire repo to remove obviously obsolete workarounds for PyPy < 3.10. (#5578) 4 months ago
Michael Carlstrom 566894d5f1
Fix null pointer dereference in `attr_with_type_hint` (#5576) 4 months ago
Michael Carlstrom dfe7e65b45
feat(types): Use `typing.SupportsInt` and `typing.SupportsFloat` and fix other typing based bugs. (#5540) 4 months ago
pre-commit-ci[bot] d2e7e8c687
chore(deps): update pre-commit hooks (#5513) 5 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
Michael Šimáček c4a05f9344
Add support for GraalPy (#5380) 9 months ago
ObeliskGate 3fb16ad175
fix: using `__cpp_nontype_template_args` instead of `__cpp_nontype_template_parameter_class` (#5330) 11 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
Ralf W. Grosse-Kunstleve f1a2e03d19
feat: remove Python 3.6 support (#5177) 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
Henry Schreiner 1a0ff40549
tests: avoid immortal objects in tests (#5150) 1 year ago
Henry Schreiner ae6432b817
fix: Python 3.13t with GIL (#5139) 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
Sergei Izmailov 8c7b8dd0ae
fix: Missing typed variants of `iterator` and `iterable` (#4832) 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
pre-commit-ci[bot] 3617f3554a
chore(deps): update pre-commit hooks (#4689) 2 years ago
Henry Schreiner 438034c5b8
chore: move to Ruff and add rules (#4483) 2 years ago
Dustin Spicuzza 8dcced29ae
Always display python type information in cast errors (#4463) 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
Michael Voznesensky f0b9f755e4
Replace error printing code gated by NDEBUG with a new flag: PYBIND11_DETAILED_ERROR_MESSAGES (#3913) 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
Peter Hawkins 44596bc4ee
Fix exception handling when pybind11::weakref() fails. (#3739) 3 years ago