Skip to content

Commit 8d2c792

Browse files
committed
red_knot_python_semantic: avoid Rust's screaming snake case convention in mdtest
1 parent 0f47810 commit 8d2c792

5 files changed

+6
-6
lines changed

crates/red_knot_python_semantic/resources/mdtest/diagnostics/unsupported_bool_conversion.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!-- snapshot-diagnostics -->
22

3-
# Different ways that `UNSUPPORTED_BOOL_CONVERSION` can occur
3+
# Different ways that `unsupported-bool-conversion` can occur
44

55
## Has a `__bool__` method, but has incorrect parameters
66

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ source: crates/red_knot_test/src/lib.rs
33
expression: snapshot
44
---
55
---
6-
mdtest name: unsupported_bool_conversion.md - Different ways that `UNSUPPORTED_BOOL_CONVERSION` can occur - Has a `__bool__` attribute, but it's not callable
6+
mdtest name: unsupported_bool_conversion.md - Different ways that `unsupported-bool-conversion` can occur - Has a `__bool__` attribute, but it's not callable
77
mdtest path: crates/red_knot_python_semantic/resources/mdtest/diagnostics/unsupported_bool_conversion.md
88
---
99

@@ -31,6 +31,6 @@ error: lint:unsupported-bool-conversion: Boolean conversion is unsupported for t
3131
7 | 10 and a and True
3232
| ^
3333
|
34-
info: `__bool__` must be callable
34+
info: `__bool__` on `NotBoolable` must be callable
3535
3636
```
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ source: crates/red_knot_test/src/lib.rs
33
expression: snapshot
44
---
55
---
6-
mdtest name: unsupported_bool_conversion.md - Different ways that `UNSUPPORTED_BOOL_CONVERSION` can occur - Has a `__bool__` method, but has an incorrect return type
6+
mdtest name: unsupported_bool_conversion.md - Different ways that `unsupported-bool-conversion` can occur - Has a `__bool__` method, but has an incorrect return type
77
mdtest path: crates/red_knot_python_semantic/resources/mdtest/diagnostics/unsupported_bool_conversion.md
88
---
99

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ source: crates/red_knot_test/src/lib.rs
33
expression: snapshot
44
---
55
---
6-
mdtest name: unsupported_bool_conversion.md - Different ways that `UNSUPPORTED_BOOL_CONVERSION` can occur - Has a `__bool__` method, but has incorrect parameters
6+
mdtest name: unsupported_bool_conversion.md - Different ways that `unsupported-bool-conversion` can occur - Has a `__bool__` method, but has incorrect parameters
77
mdtest path: crates/red_knot_python_semantic/resources/mdtest/diagnostics/unsupported_bool_conversion.md
88
---
99

Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ source: crates/red_knot_test/src/lib.rs
33
expression: snapshot
44
---
55
---
6-
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
6+
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
77
mdtest path: crates/red_knot_python_semantic/resources/mdtest/diagnostics/unsupported_bool_conversion.md
88
---
99

0 commit comments

Comments
 (0)