Skip to content

Commit

Permalink
Documentation fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
wjakob committed Sep 3, 2024
1 parent 9ff844d commit e5daca0
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions docs/api_cmake.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ If you prefer another build system, then you have the following options:
Please report Bazel-specific issues there.

- `Will Ayd <https://github.com/WillAyd/>`__ has created a `Meson WrapDB
package https://mesonbuild.com/Wrapdb-projects.html>`__ for nanobind. Please
package <https://mesonbuild.com/Wrapdb-projects.html>`__ for nanobind. Please
report Meson-specific issues on the `Meson WrapDB
<https://github.com/mesonbuild/wrapdb/issues>`__ repository.

Expand Down Expand Up @@ -66,7 +66,7 @@ The high-level interface consists of just one CMake command:

* - ``STABLE_ABI``
- Perform a `stable ABI
<https://docs.python.org/3/c-api/stable.html>`_ build, making it
<https://docs.python.org/3/c-api/stable.html>`__ build, making it
possible to use a compiled extension across Python minor versions.
The flag is ignored on Python versions older than < 3.12.
* - ``NB_STATIC``
Expand Down
2 changes: 1 addition & 1 deletion docs/api_extra.rst
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,7 @@ section <ndarrays>`.

.. cpp:class:: template <typename... Args> ndarray

.. cpp:var:: ReadOnly
.. cpp:var:: static constexpr bool ReadOnly

A constant static boolean that is true if the array's data is read-only.
This is determined by the class template arguments, not by any dynamic
Expand Down
4 changes: 2 additions & 2 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Version 2.1.0 (Aug 11, 2024)
<https://github.com/scikit-build/scikit-build-core>`__ (PR `#618
<https://github.com/wjakob/nanobind/discussions/618>`__).

* Improved handling of ``const`-ness in :cpp:class:`nb::ndarray <ndarray>` (PR
* Improved handling of ``const``-ness in :cpp:class:`nb::ndarray <ndarray>` (PR
`#491 <https://github.com/wjakob/nanobind/discussions/491>`__).

* Keyword argument annotations are now properly supported with
Expand Down Expand Up @@ -278,7 +278,7 @@ noteworthy:
generally do have interned keyword arguments) should be unaffected. (PR `#469
<https://github.com/wjakob/nanobind/pull/469>`__).

* The ``owner=nb::handle()`` default value of the :cpp:func:`nb::ndarray
* The ``owner=nb::handle()`` default value of the :cpp:class:`nb::ndarray
<ndarray>` constructor was removed since it was bug-prone. You now have to
specify the owner explicitly. The previous default (``nb::handle()``)
continues to be a valid argument.
Expand Down
1 change: 1 addition & 0 deletions docs/faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ other types when they are handled using :ref:`type casters <type_casters>`.
Please read the full section on :ref:`information exchange between C++ and
Python <exchange>` to understand the issue and alternatives.

.. _leak-checker:

Why am I getting errors about leaked functions and types?
---------------------------------------------------------
Expand Down
2 changes: 0 additions & 2 deletions tests/py_stub_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,3 @@ def overloaded_2(self, x: str) -> None: ...

def overloaded_2(self, x):
"docstr 3"

del typing

0 comments on commit e5daca0

Please sign in to comment.