So this issue actually came up for me recently. I made a new inherited class, then decided to rename the variable that was being inherited. Even though I renamed the variable to the exact same thing in both scripts, doing so caused the exact same error above.
Restarting the editor fixed the issue, so I guess it's just a weird bug with Godot? It's odd.