Page MenuHomePhabricator

Ignore lint check on randbytes since it's wrapped in a version check
ClosedPublic

Authored by sdulfari on Jun 22 2022, 21:44.

Details

Summary

With Python 3.8 and below, the linter complains that random does not have randbytes as an attribute.
This is fine since random.randbytes is wrapped in a version check. This patch makes the linter ignore
that.

Depends on D11654

Test Plan
arc lint

Diff Detail

Repository
rABC Bitcoin ABC
Branch
mypy-ignore-randbytes
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 19444
Build 38621: Build Diffbuild-without-wallet · build-diff · build-debug · build-clang-tidy · build-clang
Build 38620: arc lint + arc unit