We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
py::sequence
py::buffer
1 parent d3d700d commit 46a7dd4Copy full SHA for 46a7dd4
tests/test_buffers.py
@@ -219,3 +219,7 @@ def test_ctypes_from_buffer():
219
assert cinfo.shape == pyinfo.shape
220
assert cinfo.strides == pyinfo.strides
221
assert not cinfo.readonly
222
+
223
224
+def test_buffer_docstring():
225
+ assert m.get_buffer_info.__doc__.strip() == "get_buffer_info(arg0: Buffer) -> pybind11_tests.buffers.buffer_info"
tests/test_sequences_and_iterators.py
@@ -171,6 +171,10 @@ def __len__(self):
171
assert m.sequence_length("hello") == 5
172
173
174
+def test_sequence_doc():
175
+ assert m.sequence_length.__doc__.strip() == "sequence_length(arg0: Sequence) -> int"
176
177
178
def test_map_iterator():
179
sm = m.StringMap({"hi": "bye", "black": "white"})
180
assert sm["hi"] == "bye"
0 commit comments