Skip to content
This repository was archived by the owner on Jul 27, 2023. It is now read-only.

Commit ce3ce07

Browse files
committed
Add bound to test case test_parse_class_with_all_possible_generic_types
1 parent b0e119f commit ce3ce07

File tree

2 files changed

+19
-9
lines changed

2 files changed

+19
-9
lines changed

parser/src/parser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -697,7 +697,7 @@ class Foo[**P](A, B):
697697
#[cfg(feature = "all-nodes-with-ranges")]
698698
fn test_parse_class_with_all_possible_generic_types() {
699699
let source = "\
700-
class Foo[X, Y, *U, **P](A, B):
700+
class Foo[X, Y: str, *U, **P](A, B):
701701
pass
702702
";
703703
insta::assert_debug_snapshot!(ast::Suite::parse(source, "<test>").unwrap());

parser/src/snapshots/rustpython_parser__parser__tests__parse_class_with_all_possible_generic_types.snap

Lines changed: 18 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)