IDE reports error non-default argument follows inherited default in data class but script still runs
已回答
When using inherited data classes, if one of the data classes is empty it can generate a non-default
argument error, but the script still runs with no errors.
For example the following code:
generates the error "Inherited non-default argument(s) defined in MammalClass follows inherited default argument defined in AnimalClass". But the script will still run with no error.
The IDE being used is PyCharm Community Edition 19.3.1 in Windows 10.
Should PyCharm be flagging this as an error?
请先登录再写评论。

I filed an issue to our bug tracker https://youtrack.jetbrains.com/issue/PY-40018, please vote and feel free to leave comments.