OSDN Git Service

qapi/common.py: move build_params into gen.py
authorJohn Snow <jsnow@redhat.com>
Fri, 9 Oct 2020 16:15:39 +0000 (12:15 -0400)
committerMarkus Armbruster <armbru@redhat.com>
Sat, 10 Oct 2020 09:37:48 +0000 (11:37 +0200)
commite6a34cd7a440e6ba04251612aa6eb036d3c47d98
treed5ce7d98672466a86b260273a3a93d509af225b4
parent1cc7398dfa30fffbb23b79ff7cacea18b3c9b674
qapi/common.py: move build_params into gen.py

Including it in common.py creates a circular import dependency; schema
relies on common, but common.build_params requires a type annotation
from schema. To type this properly, it needs to be moved outside the
cycle.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Cleber Rosa <crosa@redhat.com>
Message-Id: <20201009161558.107041-18-jsnow@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
scripts/qapi/commands.py
scripts/qapi/common.py
scripts/qapi/events.py
scripts/qapi/gen.py