Using `typing_extensions.Self` already worked, but we were lacking a test for it.
<class 'Foo'>
Protocol[]