Using `typing_extensions.Self` already worked, but we were lacking a test for it.
#[expect(lint)]
#[allow(lint)]