HomeSoftware Heritage

cassandra: Add annotations to make mypy actually type-check calls to CqlRunner.

Description

cassandra: Add annotations to make mypy actually type-check calls to CqlRunner.

All methods of CqlRunner were decorated, which prevented mypy from doing
anything useful.

As I finally found a way to type the decorator (using
mypy_extensions.NamedArg), I can finally make mypy aware of the methods' types.

This commit (as well as all three of the last commits) also fixes issues found
by mypy thanks to this.

Details

Provenance
vlorentzAuthored on Aug 10 2020, 9:46 PM
vlorentzPushed on Aug 12 2020, 10:13 AM
Differential Revision
D3759: cassandra: Add annotations to make mypy actually type-check calls to CqlRunner.
Parents
rDSTOb11b890894e9: cassandra.storage: remove dead code
Branches
Unknown
Tags
Unknown
Build Status
Buildable 14503
Build 22308: test-and-buildJenkins console · Jenkins