mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-03 18:28:24 +00:00
red_knot_python_semantic: avoid Rust's screaming snake case convention in mdtest
This commit is contained in:
parent
0f47810768
commit
8d2c79276d
5 changed files with 6 additions and 6 deletions
|
@ -1,6 +1,6 @@
|
|||
<!-- snapshot-diagnostics -->
|
||||
|
||||
# Different ways that `UNSUPPORTED_BOOL_CONVERSION` can occur
|
||||
# Different ways that `unsupported-bool-conversion` can occur
|
||||
|
||||
## Has a `__bool__` method, but has incorrect parameters
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ source: crates/red_knot_test/src/lib.rs
|
|||
expression: snapshot
|
||||
---
|
||||
---
|
||||
mdtest name: unsupported_bool_conversion.md - Different ways that `UNSUPPORTED_BOOL_CONVERSION` can occur - Has a `__bool__` attribute, but it's not callable
|
||||
mdtest name: unsupported_bool_conversion.md - Different ways that `unsupported-bool-conversion` can occur - Has a `__bool__` attribute, but it's not callable
|
||||
mdtest path: crates/red_knot_python_semantic/resources/mdtest/diagnostics/unsupported_bool_conversion.md
|
||||
---
|
||||
|
||||
|
@ -31,6 +31,6 @@ error: lint:unsupported-bool-conversion: Boolean conversion is unsupported for t
|
|||
7 | 10 and a and True
|
||||
| ^
|
||||
|
|
||||
info: `__bool__` must be callable
|
||||
info: `__bool__` on `NotBoolable` must be callable
|
||||
|
||||
```
|
|
@ -3,7 +3,7 @@ source: crates/red_knot_test/src/lib.rs
|
|||
expression: snapshot
|
||||
---
|
||||
---
|
||||
mdtest name: unsupported_bool_conversion.md - Different ways that `UNSUPPORTED_BOOL_CONVERSION` can occur - Has a `__bool__` method, but has an incorrect return type
|
||||
mdtest name: unsupported_bool_conversion.md - Different ways that `unsupported-bool-conversion` can occur - Has a `__bool__` method, but has an incorrect return type
|
||||
mdtest path: crates/red_knot_python_semantic/resources/mdtest/diagnostics/unsupported_bool_conversion.md
|
||||
---
|
||||
|
|
@ -3,7 +3,7 @@ source: crates/red_knot_test/src/lib.rs
|
|||
expression: snapshot
|
||||
---
|
||||
---
|
||||
mdtest name: unsupported_bool_conversion.md - Different ways that `UNSUPPORTED_BOOL_CONVERSION` can occur - Has a `__bool__` method, but has incorrect parameters
|
||||
mdtest name: unsupported_bool_conversion.md - Different ways that `unsupported-bool-conversion` can occur - Has a `__bool__` method, but has incorrect parameters
|
||||
mdtest path: crates/red_knot_python_semantic/resources/mdtest/diagnostics/unsupported_bool_conversion.md
|
||||
---
|
||||
|
|
@ -3,7 +3,7 @@ source: crates/red_knot_test/src/lib.rs
|
|||
expression: snapshot
|
||||
---
|
||||
---
|
||||
mdtest name: unsupported_bool_conversion.md - Different ways that `UNSUPPORTED_BOOL_CONVERSION` can occur - Part of a union where at least one member has incorrect `__bool__` method
|
||||
mdtest name: unsupported_bool_conversion.md - Different ways that `unsupported-bool-conversion` can occur - Part of a union where at least one member has incorrect `__bool__` method
|
||||
mdtest path: crates/red_knot_python_semantic/resources/mdtest/diagnostics/unsupported_bool_conversion.md
|
||||
---
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue