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?

1 comment
Comment actions Permalink

I filed an issue to our bug tracker, please vote and feel free to leave comments.


Please sign in to leave a comment.