mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-24 22:25:10 +00:00
docs: Correct minor typos (#3721)
This commit is contained in:
parent
6493f496e3
commit
1a432b426f
@ -2,7 +2,7 @@ import nox
|
||||
|
||||
nox.options.sessions = ["lint", "tests", "tests_packaging"]
|
||||
|
||||
PYTHON_VERISONS = ["3.5", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11"]
|
||||
PYTHON_VERSIONS = ["3.5", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11"]
|
||||
|
||||
|
||||
@nox.session(reuse_venv=True)
|
||||
@ -14,7 +14,7 @@ def lint(session: nox.Session) -> None:
|
||||
session.run("pre-commit", "run", "-a")
|
||||
|
||||
|
||||
@nox.session(python=PYTHON_VERISONS)
|
||||
@nox.session(python=PYTHON_VERSIONS)
|
||||
def tests(session: nox.Session) -> None:
|
||||
"""
|
||||
Run the tests (requires a compiler).
|
||||
|
@ -452,7 +452,7 @@ TEST_SUBMODULE(sequences_and_iterators, m) {
|
||||
[](IntPairs &self) { return py::make_value_iterator(self, py::call_guard<int>()); },
|
||||
py::keep_alive<0, 1>());
|
||||
|
||||
// test_iterater_referencing
|
||||
// test_iterator_referencing
|
||||
py::class_<NonCopyableInt>(m, "NonCopyableInt")
|
||||
.def(py::init<int>())
|
||||
.def("set", &NonCopyableInt::set)
|
||||
|
@ -86,7 +86,7 @@ you can either use the basic targets, or use the FindPython tools:
|
||||
set_target_properties(MyModule2 PROPERTIES
|
||||
INTERPROCEDURAL_OPTIMIZATION ON
|
||||
CXX_VISIBILITY_PRESET ON
|
||||
VISIBLITY_INLINES_HIDDEN ON)
|
||||
VISIBILITY_INLINES_HIDDEN ON)
|
||||
|
||||
If you build targets yourself, you may be interested in stripping the output
|
||||
for reduced size; this is the one other feature that the helper function gives you.
|
||||
|
Loading…
Reference in New Issue
Block a user