mirror of
https://github.com/pybind/pybind11.git
synced 2026-03-14 20:27:47 +00:00
style: use Black everywhere (#2594)
* style: use Black everywhere * style: minor touchup from review
This commit is contained in:
@@ -18,10 +18,10 @@ def test_docstring_options():
|
||||
assert m.test_overloaded3.__doc__ == "Overload docstr"
|
||||
|
||||
# options.enable_function_signatures()
|
||||
assert m.test_function3.__doc__ .startswith("test_function3(a: int, b: int) -> None")
|
||||
assert m.test_function3.__doc__.startswith("test_function3(a: int, b: int) -> None")
|
||||
|
||||
assert m.test_function4.__doc__ .startswith("test_function4(a: int, b: int) -> None")
|
||||
assert m.test_function4.__doc__ .endswith("A custom docstring\n")
|
||||
assert m.test_function4.__doc__.startswith("test_function4(a: int, b: int) -> None")
|
||||
assert m.test_function4.__doc__.endswith("A custom docstring\n")
|
||||
|
||||
# options.disable_function_signatures()
|
||||
# options.disable_user_defined_docstrings()
|
||||
@@ -31,8 +31,8 @@ def test_docstring_options():
|
||||
assert m.test_function6.__doc__ == "A custom docstring"
|
||||
|
||||
# RAII destructor
|
||||
assert m.test_function7.__doc__ .startswith("test_function7(a: int, b: int) -> None")
|
||||
assert m.test_function7.__doc__ .endswith("A custom docstring\n")
|
||||
assert m.test_function7.__doc__.startswith("test_function7(a: int, b: int) -> None")
|
||||
assert m.test_function7.__doc__.endswith("A custom docstring\n")
|
||||
|
||||
# Suppression of user-defined docstrings for non-function objects
|
||||
assert not m.DocstringTestFoo.__doc__
|
||||
|
||||
Reference in New Issue
Block a user