mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-03 10:22:24 +00:00
Fix __init__.py-to-__init__ in documentation
This commit is contained in:
parent
3f20f73413
commit
98d5ffb817
2 changed files with 4 additions and 4 deletions
|
@ -13,11 +13,11 @@ use crate::{
|
|||
|
||||
define_violation!(
|
||||
/// ### What it does
|
||||
/// Checks for `__init__.py` methods that turned into generators
|
||||
/// Checks for `__init__` methods that turned into generators
|
||||
/// via the presence of `yield` or `yield from` statements.
|
||||
///
|
||||
/// ### Why is this bad?
|
||||
/// Generators are not allowed in `__init__.py` methods.
|
||||
/// Generators are not allowed in `__init__` methods.
|
||||
///
|
||||
/// ### Example
|
||||
/// ```python
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue