red_knot_python_semantic: avoid Rust's screaming snake case convention in mdtest

This commit is contained in:
Andrew Gallant 2025-04-24 09:20:21 -04:00 committed by Andrew Gallant
parent 0f47810768
commit 8d2c79276d
5 changed files with 6 additions and 6 deletions

View file

@ -1,6 +1,6 @@
<!-- snapshot-diagnostics --> <!-- 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 ## Has a `__bool__` method, but has incorrect parameters

View file

@ -3,7 +3,7 @@ source: crates/red_knot_test/src/lib.rs
expression: snapshot 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 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 7 | 10 and a and True
| ^ | ^
| |
info: `__bool__` must be callable info: `__bool__` on `NotBoolable` must be callable
``` ```

View file

@ -3,7 +3,7 @@ source: crates/red_knot_test/src/lib.rs
expression: snapshot 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 mdtest path: crates/red_knot_python_semantic/resources/mdtest/diagnostics/unsupported_bool_conversion.md
--- ---

View file

@ -3,7 +3,7 @@ source: crates/red_knot_test/src/lib.rs
expression: snapshot 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 mdtest path: crates/red_knot_python_semantic/resources/mdtest/diagnostics/unsupported_bool_conversion.md
--- ---

View file

@ -3,7 +3,7 @@ source: crates/red_knot_test/src/lib.rs
expression: snapshot 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 mdtest path: crates/red_knot_python_semantic/resources/mdtest/diagnostics/unsupported_bool_conversion.md
--- ---