Once a creature has been declared as an attacker, it becomes an attacking permanent tracked by the combat system. Losing the creature type during combat does not remove it from the attack. This is established by CR 310.4, which states that an object that stops being a creature while attacking or blocking remains in that combat role until combat ends or it leaves the battlefield.
The combat rules treat 'attacking' and 'blocking' as statuses that persist independently of whether the permanent still meets the definition of a creature (CR 506.4). So even if the permanent becomes an enchantment, artifact, or land during the combat phase, it retains its attacking status and will deal and be dealt combat damage in the damage step.
This also means blockers can still be assigned to block it, and it still follows all normal combat damage rules as an attacking permanent. However, any abilities or rules that specifically refer to 'attacking creatures' may no longer apply to it once it is no longer a creature.
Example: You attack with Chimeric Mass (a creature). In response to blocks being declared, your opponent uses Turn to Pumpkin to make it lose all creature types and become a 0/0, but it survives because it still has counters. It remains an attacking permanent and will still deal combat damage that turn despite no longer being a creature.
Unofficial fan resource — not affiliated with or endorsed by Wizards of the Coast. Answers are AI-generated estimates grounded in the Comprehensive Rules and are not a substitute for an official judge. Verify anything match-critical.