Page MenuHomePhabricator

[linter] Fix flake8 E721 warnings
ClosedPublic

Authored by Fabien on Sep 4 2023, 14:27.

Details

Reviewers
PiRK
Group Reviewers
Restricted Project
Commits
rABC39883b4df489: [linter] Fix flake8 E721 warnings
Summary

Replace type(x) == Foo with isinstance(x, Foo)

Test Plan
arc lint --everything

Diff Detail

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

Event Timeline

Fabien requested review of this revision.Sep 4 2023, 14:27
PiRK requested changes to this revision.Sep 4 2023, 15:12
PiRK added a subscriber: PiRK.
PiRK added inline comments.
electrum/electrumabc/wallet.py
2689 ↗(On Diff #42062)
2692 ↗(On Diff #42062)

dito

This revision now requires changes to proceed.Sep 4 2023, 15:12

Fix misuse of the is keyword

This revision is now accepted and ready to land.Sep 4 2023, 16:08
This revision was automatically updated to reflect the committed changes.