Page MenuHomePhabricator

[TEST] Remove useless trailing parenthesis in class declaration
ClosedPublic

Authored by Fabien on Mar 1 2022, 15:37.

Details

Summary

This probably comes from old python 2 memories, but this is not necessary, never was and is confusing at best so trim it off.

There is no change in behavior.

Test Plan
ninja check-functional-extended

cd test/functional
git grep -nE "class [^(]+\(\):"

Check there is no remaining case.

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Fabien requested review of this revision.Mar 1 2022, 15:37
PiRK added a subscriber: PiRK.

Great. It was also on my todo list.
I quickly looked for a way to detect these with a linter, but I didn't find an obvious error code to add to flake8.

This revision is now accepted and ready to land.Mar 1 2022, 15:59