mirror of
https://github.com/pybind/pybind11.git
synced 2026-05-12 09:17:42 +00:00
Signature formatting for sphinx
This commit is contained in:
@@ -1,22 +1,22 @@
|
||||
Help on built-in function kw_func in module example
|
||||
|
||||
kkww__ffuunncc(...)
|
||||
Signature : (x : int, y : int) -> NoneType
|
||||
kw_func(x : int, y : int)
|
||||
|
||||
Help on built-in function kw_func2 in module example
|
||||
|
||||
kkww__ffuunncc22(...)
|
||||
Signature : (x : int = 100L, y : int = 200L) -> NoneType
|
||||
kw_func2(x : int = 100L, y : int = 200L)
|
||||
|
||||
Help on built-in function kw_func3 in module example
|
||||
|
||||
kkww__ffuunncc33(...)
|
||||
Signature : (data : unicode = u'Hello world!') -> NoneType
|
||||
kw_func3(data : unicode = u'Hello world!')
|
||||
|
||||
Help on built-in function kw_func4 in module example
|
||||
|
||||
kkww__ffuunncc44(...)
|
||||
Signature : (myList : list<int> = [13L, 17L]) -> NoneType
|
||||
kw_func4(myList : list<int> = [13L, 17L])
|
||||
|
||||
kw_func(x=5, y=10)
|
||||
kw_func(x=5, y=10)
|
||||
@@ -28,7 +28,7 @@ kw_func(x=100, y=10)
|
||||
kw_func(x=5, y=10)
|
||||
kw_func(x=5, y=10)
|
||||
Caught expected exception: Incompatible function arguments. The following argument types are supported:
|
||||
1. (x : int = 100L, y : int = 200L) -> NoneType
|
||||
1. (x : int = 100L, y : int = 200L)
|
||||
|
||||
kw_func4: 13 17
|
||||
kw_func4: 1 2 3
|
||||
|
||||
@@ -13,7 +13,7 @@ Rabbit is a parrot
|
||||
Polly is a parrot
|
||||
Molly is a dog
|
||||
The following error is expected: Incompatible function arguments. The following argument types are supported:
|
||||
1. (example.Dog) -> NoneType
|
||||
1. (example.Dog)
|
||||
|
||||
Callback function 1 called!
|
||||
False
|
||||
|
||||
Reference in New Issue
Block a user