I think this should probably be an `isinstance` check, and it should return `NotImplemented` in that case.