Re: [PATCH v2 03/16] qapi/expr.py: constrain incoming expression types

2020-11-18 Thread Markus Armbruster
John Snow writes: > mypy does not know the types of values stored in Dicts that masquerade > as objects. Help the type checker out by constraining the type. I'm not sure I understand what you mean by "dict masquerading as object". > > Signed-off-by: John Snow > Reviewed-by: Eduardo Habkost >

[PATCH v2 03/16] qapi/expr.py: constrain incoming expression types

2020-10-26 Thread John Snow
mypy does not know the types of values stored in Dicts that masquerade as objects. Help the type checker out by constraining the type. Signed-off-by: John Snow Reviewed-by: Eduardo Habkost Reviewed-by: Cleber Rosa --- scripts/qapi/expr.py | 25 ++--- 1 file changed, 22 inse