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: README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -78,6 +78,7 @@ currently emitted:
78
78
| Y044 | `from __future__ import annotations` has no effect in stub files, as forward references in stubs are enabled by default.
79
79
| Y045 | `__iter__` methods should never return `Iterable[T]`, as they should always return some kind of iterator.
80
80
| Y046 | A private `Protocol` should be used at least once in the file in which it is defined.
81
+
| Y048 | Function bodies should contain exactly one statement. (Note that if a function body includes a docstring, the docstring counts as a "statement".)
81
82
82
83
Many error codes enforce modern conventions, and some cannot yet be used in
0 commit comments