Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0A4B7C636D3 for ; Thu, 9 Feb 2023 18:49:05 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pQBxo-0007V8-8w; Thu, 09 Feb 2023 13:48:08 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pQBxm-0007Ty-5W for qemu-devel@nongnu.org; Thu, 09 Feb 2023 13:48:06 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pQBxj-0005UC-AZ for qemu-devel@nongnu.org; Thu, 09 Feb 2023 13:48:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1675968482; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=N98mZUm3nl3mXxLGsd03Wy3U+FEKfRLD/z0xiRvXxHk=; b=ZSzeUPNZcusKj40jinL6uAYCbSfaSuN9kVwR19dQQGrUTXGjrVMXdBy8TNxbHtUihOcQLX UtkKccHxwq322FjSxhWeIDeNzgLEb45Q1DsBAFN9dtynFMZykV3Lbsm2XsnI57H+yGfAUi sjR6Dw6yAPGfhpon8S2wLEaqxiiSixs= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-593-8DmJNp3xN--E8XVTiPJBBw-1; Thu, 09 Feb 2023 13:47:59 -0500 X-MC-Unique: 8DmJNp3xN--E8XVTiPJBBw-1 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id D698A3C0DDBB; Thu, 9 Feb 2023 18:47:58 +0000 (UTC) Received: from scv.redhat.com (unknown [10.22.16.119]) by smtp.corp.redhat.com (Postfix) with ESMTP id A5D4C492C3E; Thu, 9 Feb 2023 18:47:58 +0000 (UTC) From: John Snow To: qemu-devel@nongnu.org Cc: Michael Roth , Markus Armbruster , John Snow Subject: [PATCH v3 0/7] qapi: static typing conversion, pt5c Date: Thu, 9 Feb 2023 13:47:51 -0500 Message-Id: <20230209184758.1017863-1-jsnow@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.1 on 10.11.54.10 Received-SPF: pass client-ip=170.10.129.124; envelope-from=jsnow@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org This is part five (c), and focuses on sharing strict types between=0D parser.py and expr.py.=0D =0D gitlab: https://gitlab.com/jsnow/qemu/-/commits/python-qapi-cleanup-pt5c=0D =0D Every commit should pass with:=0D - `isort -c qapi/`=0D - `flake8 qapi/`=0D - `pylint --rcfile=3Dqapi/pylintrc qapi/`=0D - `mypy --config-file=3Dqapi/mypy.ini qapi/`=0D =0D V3:=0D - Squashed a bunch of patches into the QAPIExpression patch=0D - Added a few 'info' locals whenever there were >=3D 3 usages to help=0D minimize some churn=0D - Removed some type redundancy from docstrings=0D - Brought along the two patches from pt0 that I want merged.=0D - Removed 'pexpr' entirely, there's no intermediate state where it's=0D needed now.=0D - Minor style issues.=0D =0D John Snow (7):=0D qapi: Update flake8 config=0D qapi: update pylint configuration=0D qapi/expr: Split check_expr out from check_exprs=0D qapi/expr: add typing workaround for AbstractSet=0D qapi/parser: add QAPIExpression type=0D qapi: remove _JSONObject=0D qapi: remove JSON value FIXME=0D =0D scripts/qapi/.flake8 | 3 +-=0D scripts/qapi/expr.py | 231 +++++++++++++++++++----------------------=0D scripts/qapi/parser.py | 49 +++++----=0D scripts/qapi/pylintrc | 1 +=0D scripts/qapi/schema.py | 72 +++++++------=0D 5 files changed, 181 insertions(+), 175 deletions(-)=0D =0D -- =0D 2.39.0=0D =0D