aboutsummaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorJohn Snow <jsnow@redhat.com>2020-10-06 19:58:07 -0400
committerJohn Snow <jsnow@redhat.com>2020-10-20 09:37:57 -0400
commit090744d552e18e600bf6d3c896a52d4846aa3e53 (patch)
tree3a2251c8054dea9d34dd051d9bb95ced53b0b9cf /python
parentaad3f3bb6c8b63b33db30911748fe32928b7b4bd (diff)
iotests.py: Adjust HMP kwargs typing
mypy wants to ensure there's consistency between the kwargs arguments types and any unspecified keyword arguments. In this case, conv_keys is a bool, but the remaining keys are Any type. Mypy (correctly) infers the **kwargs type to be **Dict[str, str], which is not compatible with conv_keys: bool. Because QMP typing is a little fraught right now anyway, re-type kwargs to Dict[str, Any] which has the benefit of silencing this check right now. A future re-design might type these more aggressively, but this will give us a baseline to work from with minimal disruption. (Thanks Kevin Wolf for the debugging assist here) Signed-off-by: John Snow <jsnow@redhat.com> Reviewed-by: Kevin Wolf <kwolf@redhat.com> Message-id: 20201006235817.3280413-11-jsnow@redhat.com Signed-off-by: John Snow <jsnow@redhat.com>
Diffstat (limited to 'python')
0 files changed, 0 insertions, 0 deletions