You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/reference/docstrings.md
-37Lines changed: 0 additions & 37 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -303,20 +303,6 @@ Modules:
303
303
"""
304
304
```
305
305
306
-
#### Deprecated {#google-section-deprecated}
307
-
308
-
Deprecated sections allow to document a deprecation that happened at a particular version. They can be used in every docstring.
309
-
310
-
```python
311
-
"""My module.
312
-
313
-
Deprecated:
314
-
1.2: The `foo` attribute is deprecated.
315
-
"""
316
-
317
-
foo: int=0
318
-
```
319
-
320
306
#### Examples {#google-section-examples}
321
307
322
308
Examples sections allow to add examples of Python code without the use of markup code blocks. They are a mix of prose and interactive console snippets. They can be used in every docstring.
@@ -1042,22 +1028,6 @@ bar
1042
1028
"""
1043
1029
```
1044
1030
1045
-
#### Deprecated {#numpydoc-section-deprecated}
1046
-
1047
-
Deprecated sections allow to document a deprecation that happened at a particular version. They can be used in every docstring.
1048
-
1049
-
```python
1050
-
"""My module.
1051
-
1052
-
Deprecated
1053
-
----------
1054
-
1.2
1055
-
The `foo` attribute is deprecated.
1056
-
"""
1057
-
1058
-
foo: int=0
1059
-
```
1060
-
1061
1031
#### Examples {#numpydoc-section-examples}
1062
1032
1063
1033
Examples sections allow to add examples of Python code without the use of markup code blocks. They are a mix of prose and interactive console snippets. They can be used in every docstring.
@@ -1444,7 +1414,6 @@ For non-Insiders versions, `default` is returned if specified, else the first pa
1444
1414
1445
1415
The sections are easier to deal in that order:
1446
1416
1447
-
- Deprecated (single item, version and text)
1448
1417
- Raises, Warns (multiple items, no names, single type each)
1449
1418
- Attributes, Other Parameters, Parameters (multiple items, one name and one optional type each)
1450
1419
- Returns (multiple items, optional name and/ortype each, annotation to split when multiple names)
[^1]: Support for a regular section instead of the RST directive specified in the [Numpydoc styleguide](https://numpydoc.readthedocs.io/en/latest/format.html#deprecation-warning).
1477
-
1478
1444
### Getting annotations/defaults from parent
1479
1445
1480
1446
Section | Google | Numpy | Sphinx
@@ -1484,7 +1450,6 @@ Functions | / | / | /
1484
1450
Methods |/|/|/
1485
1451
Classes |/|/|/
1486
1452
Modules |/|/|/
1487
-
Deprecated |/|/|/
1488
1453
Examples |/|/|/
1489
1454
Parameters | ✅ | ✅ | ✅
1490
1455
Other Parameters | ✅ | ✅ | [❌][issue-parent-sphinx-other-parameters]
0 commit comments