pybind11/docs/advanced
Tim Ohliger 1b7aa0bb66
feat: rework of arg/return type hints to support .noconvert() (#5486)
* Added rework of arg/return typing

* Changed `Path` to `pathlib.Path` for compatibility with pybind11-stubgen

* Removed old arg/return type hint implementation

* Added noconvert support for arg/return type hints

* Added commented failing tests for Literals with special characters

* Added return_descr/arg_descr for correct typing in typing::Callable

* Fixed clang-tidy issues

* Changed io_name to have explicit return type (for C++11 support)

* style: pre-commit fixes

* Added support for nested callables

* Fixed missing include

* Fixed is_return_value constructor call

* Fixed clang-tidy issue

* Uncommented test cases for special characters in literals

* Moved literal tests to correct test case

* Added escaping of special characters in typing::Literal

* Readded mistakenly deleted bracket

* Moved sanitize_string_literal to correct namespace

* Added test for Literal with `!` and changed StringLiteral template param name

* Added test for Literal with multiple and repeated special chars

* Simplified string literal sanitization function

* Added test for `->` in literal

* Added test for `->` with io_name

* Removed unused parameter name to prevent warning

* Added escaping of `-` in literal to prevent processing of `->`

* Fixed wrong computation of sanitized string literal length

* Added cast to prevent error with MSVC

* Simplified special character check

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-01-24 17:01:06 -05:00
..
cast feat: rework of arg/return type hints to support .noconvert() (#5486) 2025-01-24 17:01:06 -05: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