mbox

[PULL,00/25] QAPI patches patches for 2024-04-24

Message ID 20240424081710.2907748-1-armbru@redhat.com
State New
Headers show

Pull-request

https://repo.or.cz/qemu/armbru.git tags/pull-qapi-2024-04-24

Message

Markus Armbruster April 24, 2024, 8:16 a.m. UTC
The following changes since commit c25df57ae8f9fe1c72eee2dab37d76d904ac382e:

  Update version for 9.0.0 release (2024-04-23 14:19:21 +0100)

are available in the Git repository at:

  https://repo.or.cz/qemu/armbru.git tags/pull-qapi-2024-04-24

for you to fetch changes up to 060b5a9323e5f49c5edcb77c42e231065bbcc42e:

  qapi: Dumb down QAPISchema.lookup_entity() (2024-04-24 10:03:54 +0200)

----------------------------------------------------------------
QAPI patches patches for 2024-04-24

----------------------------------------------------------------
John Snow (22):
      qapi/parser: fix typo - self.returns.info => self.errors.info
      qapi/parser: shush up pylint
      qapi: sort pylint suppressions
      qapi/schema: add pylint suppressions
      qapi: create QAPISchemaDefinition
      qapi/schema: declare type for QAPISchemaObjectTypeMember.type
      qapi/schema: declare type for QAPISchemaArrayType.element_type
      qapi/schema: make c_type() and json_type() abstract methods
      qapi/schema: adjust type narrowing for mypy's benefit
      qapi/schema: add type narrowing to lookup_type()
      qapi/schema: assert resolve_type has 'info' and 'what' args on error
      qapi/schema: fix QAPISchemaArrayType.check's call to resolve_type
      qapi/schema: assert info is present when necessary
      qapi/schema: add _check_complete flag
      qapi/schema: Don't initialize "members" with `None`
      qapi/schema: fix typing for QAPISchemaVariants.tag_member
      qapi/schema: assert inner type of QAPISchemaVariants in check_clash()
      qapi/parser: demote QAPIExpression to Dict[str, Any]
      qapi/parser.py: assert member.info is present in connect_member
      qapi/schema: add type hints
      qapi/schema: turn on mypy strictness
      qapi/schema: remove unnecessary asserts

Markus Armbruster (3):
      qapi: Assert built-in types exist
      qapi: Tighten check whether implicit object type already exists
      qapi: Dumb down QAPISchema.lookup_entity()

 scripts/qapi/introspect.py |   8 +-
 scripts/qapi/mypy.ini      |   5 -
 scripts/qapi/parser.py     |   7 +-
 scripts/qapi/pylintrc      |  11 +-
 scripts/qapi/schema.py     | 794 +++++++++++++++++++++++++++++----------------
 5 files changed, 537 insertions(+), 288 deletions(-)

Comments

Richard Henderson April 24, 2024, 6:47 p.m. UTC | #1
On 4/24/24 01:16, Markus Armbruster wrote:
> The following changes since commit c25df57ae8f9fe1c72eee2dab37d76d904ac382e:
> 
>    Update version for 9.0.0 release (2024-04-23 14:19:21 +0100)
> 
> are available in the Git repository at:
> 
>    https://repo.or.cz/qemu/armbru.git  tags/pull-qapi-2024-04-24
> 
> for you to fetch changes up to 060b5a9323e5f49c5edcb77c42e231065bbcc42e:
> 
>    qapi: Dumb down QAPISchema.lookup_entity() (2024-04-24 10:03:54 +0200)
> 
> ----------------------------------------------------------------
> QAPI patches patches for 2024-04-24
> 
> ----------------------------------------------------------------
> John Snow (22):
>        qapi/parser: fix typo - self.returns.info => self.errors.info
>        qapi/parser: shush up pylint
>        qapi: sort pylint suppressions
>        qapi/schema: add pylint suppressions
>        qapi: create QAPISchemaDefinition
>        qapi/schema: declare type for QAPISchemaObjectTypeMember.type
>        qapi/schema: declare type for QAPISchemaArrayType.element_type
>        qapi/schema: make c_type() and json_type() abstract methods
>        qapi/schema: adjust type narrowing for mypy's benefit
>        qapi/schema: add type narrowing to lookup_type()
>        qapi/schema: assert resolve_type has 'info' and 'what' args on error
>        qapi/schema: fix QAPISchemaArrayType.check's call to resolve_type
>        qapi/schema: assert info is present when necessary
>        qapi/schema: add _check_complete flag
>        qapi/schema: Don't initialize "members" with `None`
>        qapi/schema: fix typing for QAPISchemaVariants.tag_member
>        qapi/schema: assert inner type of QAPISchemaVariants in check_clash()
>        qapi/parser: demote QAPIExpression to Dict[str, Any]
>        qapi/parser.py: assert member.info is present in connect_member
>        qapi/schema: add type hints
>        qapi/schema: turn on mypy strictness
>        qapi/schema: remove unnecessary asserts
> 
> Markus Armbruster (3):
>        qapi: Assert built-in types exist
>        qapi: Tighten check whether implicit object type already exists
>        qapi: Dumb down QAPISchema.lookup_entity()

Applied, thanks.  Please update https://wiki.qemu.org/ChangeLog/9.1 as appropriate.


r~