Skip to content

Commit

Permalink
Fix __init__.py-to-__init__ in documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
charliermarsh committed Feb 10, 2023
1 parent 3f20f73 commit 98d5ffb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions crates/ruff/src/rules/pylint/rules/yield_in_init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions docs/rules/yield-in-init.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
Derived from the **Pylint** linter.

### 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
Expand Down

0 comments on commit 98d5ffb

Please sign in to comment.