File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1469,51 +1469,6 @@ class Foo:
14691469 self .bar = bar
14701470```
14711471
1472- ### Fix DCO010
1473-
1474- This linting rule is triggered by a function/ method that has at least one
1475- yield statement with a value and does not have a yields section in the
1476- docstring. For example:
1477-
1478- ``` Python
1479- def foo ():
1480- """ Yield bar."""
1481- yield " bar"
1482-
1483- class FooClass :
1484- def foo (self ):
1485- """ Yield bar."""
1486- yield " bar"
1487- ```
1488-
1489- These examples can be fixed by:
1490-
1491- ``` Python
1492- def foo ():
1493- """ Yield bar.
1494-
1495- Yield:
1496- bar.
1497- """
1498-
1499- def foo ():
1500- """ Yield bar.
1501-
1502- Yields:
1503- bar.
1504- """
1505- yield " bar"
1506-
1507- class FooClass :
1508- def foo (self ):
1509- """ Yield bar.
1510-
1511- Yields:
1512- bar.
1513- """
1514- yield " bar"
1515- ```
1516-
15171472## Sections
15181473
15191474There are several alternative names for each of the sections which are captured
You can’t perform that action at this time.
0 commit comments