Is sex with a corpse considered cheating?

Let’s say, hypothetically, your significant other does not consider sex with a toy or sex doll as cheating. They’re fine with it. If you had sex with a dead body, should they be mad at you for cheating?