You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ ruff --versionruff 0.4.2
$ ruff check --isolated --select B024 abc.py abc.py:4:7: B024 `Foo` is an abstract base class, but it has no abstract methodsFound 1 error.
$
## Summary
I think the check included here does make sense, but I don't see why we
would allow it if a value is provided for the attribute -- since, in
that case, isn't it _not_ abstract?
Closes: #11208.
Taking the example from https://docs.astral.sh/ruff/rules/abstract-base-class-without-abstract-method/
B024 detects it as expected:
But if I add a simple class var, now it passes:
Is that expected?
Playground: https://play.ruff.rs/f0b51911-407f-4bd7-af7c-c9f5b1116677
The text was updated successfully, but these errors were encountered: