-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
ENH: enable multiline signatures when too long. #11011
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 26 commits
82f1b98
8d6dfba
581433b
d3ec233
1229b66
ec713e9
85ff493
8ca560d
9ec4698
b93ecf0
3b110ce
234acd6
7c016c9
5b8735d
1ca68b0
8e198f3
25ae353
d6b2dac
af77cad
ea89180
5cc07d6
caff655
b71b06d
88c2e09
4258fd5
6e6261c
9c52eae
2d9ad80
0bc3b68
2c0da6a
bba2b51
d8df099
d18f973
d803e68
3753e7e
eb63da6
53e882f
d7508a0
b665647
ada9d00
ed7fac8
1475f5f
9b9e694
691a780
4deb58c
48d2ccb
b065ab7
8d42ac1
2b864fe
fa97a15
d787002
707650f
b1cb1b3
8308742
e6ef3c2
dfd0075
bfab7ea
26551bc
9d03de0
b3e5662
592c86c
1af1a2e
69dba4b
2918995
d58b63c
b866b88
c6cf460
b18c481
4b47e79
a652d3e
bcba5f6
3243f9d
93bdb8d
417db1f
c4e9c62
57004e3
88cfe5a
9ce3e34
3379337
98f1803
ef7adde
1ad0981
e36c811
ea30441
2d604b9
71f5a8a
e948563
d2b3459
bfc353e
0c54703
a1b031f
a0f5d9b
a8a9be9
3b34e30
2c1f83a
9c625f1
5866fe6
3bef7e4
30041a6
8037a5b
2a85b9e
35424ea
db91327
1a44553
0c4fdb8
36183f5
f2d1574
370cd0e
50ac9a6
585b2b9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2903,6 +2903,18 @@ Options for the C domain | |
|
|
||
| .. versionadded:: 4.0.3 | ||
|
|
||
| .. confval:: c_maximum_signature_line_length | ||
|
|
||
| An integer representing the maximum number of characters that cannot be exceeded | ||
| by a C object's signature. When negative (the default), there is no maximum, no | ||
| line break will be introduced no matter how long the signature. When positive, all | ||
| objects whose signature exceed the given character limit will have each of their | ||
| arguments displayed on a separate, indented line. The directive | ||
| :rst:dir:`single-line-signature` allows to disable this behavior on specific | ||
| objects. | ||
|
|
||
| .. versionadded:: 6.x | ||
|
|
||
| .. _cpp-config: | ||
|
|
||
| Options for the C++ domain | ||
|
|
@@ -2933,6 +2945,18 @@ Options for the C++ domain | |
|
|
||
| .. versionadded:: 1.5 | ||
|
|
||
| .. confval:: cpp_maximum_signature_line_length | ||
|
|
||
| An integer representing the maximum number of characters that cannot be exceeded | ||
| by a C++ object's signature. When negative (the default), there is no maximum, no | ||
| line break will be introduced no matter how long the signature. When positive, all | ||
| objects whose signature exceed the given character limit will have each of their | ||
| arguments displayed on a separate, indented line. The directive | ||
| :rst:dir:`single-line-signature` allows to disable this behavior on specific | ||
| objects. | ||
|
|
||
| .. versionadded:: 6.x | ||
|
|
||
| Options for the Python domain | ||
| ----------------------------- | ||
|
|
||
|
|
@@ -2945,6 +2969,18 @@ Options for the Python domain | |
|
|
||
| .. note:: This configuration is still in experimental | ||
|
|
||
| .. confval:: python_maximum_signature_line_length | ||
|
|
||
| An integer representing the maximum number of characters that cannot be exceeded | ||
| by a Python object's signature. When negative (the default), there is no maximum, | ||
| no line break will be introduced no matter how long the signature. When positive, | ||
| all objects whose signature exceed the given character limit will have each of | ||
| their arguments displayed on a separate, indented line. The directive | ||
| :rst:dir:`single-line-signature` allows to disable this behavior on specific | ||
| objects. | ||
|
|
||
| .. versionadded:: 6.x | ||
|
||
|
|
||
| Example of configuration file | ||
| ----------------------------- | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.