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
a3118130
Unverified
Commit
a3118130
authored
May 31, 2020
by
Andrew J. Hesford
Committed by
GitHub
May 31, 2020
Browse files
pytypes.h: fix docs generation (#2220)
parent
a38e5331
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
include/pybind11/pytypes.h
include/pybind11/pytypes.h
+5
-0
No files found.
include/pybind11/pytypes.h
View file @
a3118130
...
@@ -980,6 +980,9 @@ public:
...
@@ -980,6 +980,9 @@ public:
return
std
::
string
(
buffer
,
(
size_t
)
length
);
return
std
::
string
(
buffer
,
(
size_t
)
length
);
}
}
};
};
// Note: breathe >= 4.17.0 will fail to build docs if the below two constructors
// are included in the doxygen group; close here and reopen after as a workaround
/// @} pytypes
inline
bytes
::
bytes
(
const
pybind11
::
str
&
s
)
{
inline
bytes
::
bytes
(
const
pybind11
::
str
&
s
)
{
object
temp
=
s
;
object
temp
=
s
;
...
@@ -1009,6 +1012,8 @@ inline str::str(const bytes& b) {
...
@@ -1009,6 +1012,8 @@ inline str::str(const bytes& b) {
m_ptr
=
obj
.
release
().
ptr
();
m_ptr
=
obj
.
release
().
ptr
();
}
}
/// \addtogroup pytypes
/// @{
class
none
:
public
object
{
class
none
:
public
object
{
public:
public:
PYBIND11_OBJECT
(
none
,
object
,
detail
::
PyNone_Check
)
PYBIND11_OBJECT
(
none
,
object
,
detail
::
PyNone_Check
)
...
...
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