Docstring comes first. Possibly many lines.
(default=None)
| 30 | |
| 31 | |
| 32 | def function(default=None): |
| 33 | """Docstring comes first. |
| 34 | |
| 35 | Possibly many lines. |
| 36 | """ |
| 37 | # FIXME: Some comment about why this function is crap but still in production. |
| 38 | import inner_imports |
| 39 | |
| 40 | if inner_imports.are_evil(): |
| 41 | # Explains why we have this if. |
| 42 | # In great detail indeed. |
| 43 | x = X() |
| 44 | return x.method1() # type: ignore |
| 45 | |
| 46 | # This return is also commented for some reason. |
| 47 | return default |
| 48 | |
| 49 | |
| 50 | # Explains why we use global state. |