Skip to content

Commit

Permalink
Improved E713 & E714 code examples (#4336)
Browse files Browse the repository at this point in the history
  • Loading branch information
trag1c authored May 10, 2023
1 parent d5ff8d7 commit 045449a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/ruff/src/rules/pycodestyle/rules/not_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ use crate::rules::pycodestyle::helpers::compare;
///
/// Use instead:
/// ```python
/// if x not in y:
/// Z = X not in Y
/// if X.B not in Y:
/// pass
/// assert X in Y or X is Z
/// ```
#[violation]
pub struct NotInTest;
Expand Down Expand Up @@ -55,9 +55,9 @@ impl AlwaysAutofixableViolation for NotInTest {
///
/// Use instead:
/// ```python
/// if not (X in Y):
/// if X is not Y:
/// pass
/// zz = x is not y
/// Z = X.B is not Y
/// ```
#[violation]
pub struct NotIsTest;
Expand Down

0 comments on commit 045449a

Please sign in to comment.