Quick subclasshook fix using the same method is being used in collections.abc (up to a certain degree).