Please consider
import abc
from typing_extensions import Protocol
class Foo(Protocol, metclass=abc.ABCMeta):
...
Now this rule will re-write the class to class Foo(Protocol, abc.ABC): .... Well, that won't work at runtime :) Protocol checks that it only inherits from other Protocols.
Not sure what the fix is here.