Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
pybind11
Commits
1a432b42
Unverified
Commit
1a432b42
authored
Feb 12, 2022
by
Chris Ohk
Committed by
GitHub
Feb 11, 2022
Browse files
docs: Correct minor typos (#3721)
parent
6493f496
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
noxfile.py
noxfile.py
+2
-2
tests/test_sequences_and_iterators.cpp
tests/test_sequences_and_iterators.cpp
+1
-1
tools/pybind11Config.cmake.in
tools/pybind11Config.cmake.in
+1
-1
No files found.
noxfile.py
View file @
1a432b42
...
...
@@ -2,7 +2,7 @@ import nox
nox
.
options
.
sessions
=
[
"lint"
,
"tests"
,
"tests_packaging"
]
PYTHON_VER
I
SONS
=
[
"3.5"
,
"3.6"
,
"3.7"
,
"3.8"
,
"3.9"
,
"3.10"
,
"3.11"
]
PYTHON_VERS
I
ONS
=
[
"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_VER
I
SONS
)
@
nox
.
session
(
python
=
PYTHON_VERS
I
ONS
)
def
tests
(
session
:
nox
.
Session
)
->
None
:
"""
Run the tests (requires a compiler).
...
...
tests/test_sequences_and_iterators.cpp
View file @
1a432b42
...
...
@@ -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_iterat
e
r_referencing
// test_iterat
o
r_referencing
py
::
class_
<
NonCopyableInt
>
(
m
,
"NonCopyableInt"
)
.
def
(
py
::
init
<
int
>
())
.
def
(
"set"
,
&
NonCopyableInt
::
set
)
...
...
tools/pybind11Config.cmake.in
View file @
1a432b42
...
...
@@ -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)
VISIB
I
LITY_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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment