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
Branch
remove_dangling_python_class_parenthesis
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 18383
Build 36563: Build Diffbuild-diff · build-debug · build-without-wallet · build-clang-tidy · build-clang
Build 36562: arc lint + arc unit

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