This is part five (c), and focuses on sharing strict types between parser.py and expr.py.
gitlab: https://gitlab.com/jsnow/qemu/-/commits/python-qapi-cleanup-pt5c Requirements: - Python 3.6+ - mypy >= 0.770 - pylint >= 2.6.0 (2.7.0+ when using Python 3.9+) Every commit should pass with: - `isort -c qapi/` - `flake8 qapi/` - `pylint --rcfile=qapi/pylintrc qapi/` - `mypy --config-file=qapi/mypy.ini qapi/` John Snow (3): qapi/expr: Split check_expr out from check_exprs qapi/parser.py: add ParsedExpression type qapi/parser: Remove _JSONObject scripts/qapi/expr.py | 223 ++++++++++++++++++++--------------------- scripts/qapi/parser.py | 29 ++++-- scripts/qapi/schema.py | 6 +- 3 files changed, 129 insertions(+), 129 deletions(-) -- 2.30.2