Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,7 @@

class DefaultTypeVar(Generic[T]):
var: T


class KeywordArguments(Generic[T], metaclass=type):
var: T
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ pub(crate) fn non_pep695_generic_class(checker: &Checker, class_def: &StmtClassD
//
// because `find_generic` also finds the *first* Generic argument, this has the additional
// benefit of bailing out with a diagnostic if multiple Generic arguments are present
if generic_idx != arguments.len() - 1 {
if generic_idx != arguments.args.len() - 1 {
return;
}

Expand Down