diff options
author | John Snow <jsnow@redhat.com> | 2021-02-01 14:37:42 -0500 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2021-02-08 14:15:58 +0100 |
commit | fd9b1603843df86b430083b583157fe0c352901e (patch) | |
tree | 6b4cd6828c3fda27d5204cfec40ce539a7f2f437 /scripts/decodetree.py | |
parent | 39b2d838f1f8a6c3d2fc4e2eecc45e5554d02af7 (diff) |
qapi/gen: write _genc/_genh access shims
Many places assume they can access these fields without checking them
first to ensure they are defined. Eliminating the _genc and _genh fields
and replacing them with functional properties that check for correct
state can ease the typing overhead by eliminating the Optional[T] return
type.
Signed-off-by: John Snow <jsnow@redhat.com>
Message-Id: <20210201193747.2169670-12-jsnow@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'scripts/decodetree.py')
0 files changed, 0 insertions, 0 deletions