pybind11/docs/advanced
Tim Ohliger 1d09fc8300
Option for arg/return type hints and correct typing for std::filesystem::path (#5450)
* Added arg/return type handling.

* Added support for nested arg/return type in py::typing::List

* Added support for arg/return type in stl/filesystem

* Added tests for arg/return type in stl/filesystem and py::typing::List

* Added arg/return name to more py::typing classes

* Added arg/return type to Callable[...]

* Added tests for typing container classes (also nested)

* Changed typing classes to avoid using C++14 auto return type deduction.

* Fixed clang-tidy errors.

* Changed Enable to SFINAE

* Added test for Tuple[T, ...]

* Added RealNumber with custom caster for testing typing classes.

* Added tests for Set, Iterable, Iterator, Union, and Optional

* Added tests for Callable

* Fixed Callable with ellipsis test

* Changed TypeGuard/TypeIs to use return type (being the narrower type) + Tests

* Added test for use of fallback type name with stl vector

* Updated documentation.

* Fixed unnecessary constructor call in test.

* Fixed reference counting in example type caster.

* Fixed clang-tidy issues.

* Fix for clang-tidy

* Updated cast method to use pybind11 API rather than Python C API in custom caster example

* Updated load to use pybind11 API rather than Python C API in custom caster example

* Changed test of arg/return name to use pybind11 API instead of Python C API

* Updated code in adcanced/cast example and improved documentation text

* Fixed references in custom type caster docs

* Fixed wrong logical and operator in test

* Fixed wrong logical operator in doc example

* Added comment to test about `float` vs `float | int`

* Updated std::filesystem::path docs in cast/overview section

* Remove one stray dot.

---------

Co-authored-by: Ralf W. Grosse-Kunstleve <rgrossekunst@nvidia.com>
2024-12-08 11:30:49 -08:00
..
cast Option for arg/return type hints and correct typing for std::filesystem::path (#5450) 2024-12-08 11:30:49 -08:00
pycpp docs(numpy): drop duplicated ndim (#5119) 2024-05-06 12:42:05 -04:00
classes.rst feat: remove Python 3.7 support (#5191) 2024-07-30 09:18:35 -07:00
deadlock.md docs/advanced A document about deadlock potential with C++ statics (#5394) 2024-10-08 10:51:20 -07:00
embedding.rst feat: require CMake 3.15+ (#5304) 2024-08-14 18:21:04 -04:00
exceptions.rst feat: remove Python 3.7 support (#5191) 2024-07-30 09:18:35 -07:00
functions.rst Fix grammar in functions.rst (#4791) 2023-08-15 07:09:13 -07:00
misc.rst docs/advanced A document about deadlock potential with C++ statics (#5394) 2024-10-08 10:51:20 -07:00
smart_ptrs.rst fix: allow -Wpedantic in C++20 mode (#5322) 2024-08-22 00:27:50 -04:00