From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id CAFD6457CE; Tue, 20 Aug 2024 11:45:35 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9793B4026C; Tue, 20 Aug 2024 11:45:35 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mails.dpdk.org (Postfix) with ESMTP id 9C753400D6 for ; Tue, 20 Aug 2024 11:45:33 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1724147133; 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: in-reply-to:in-reply-to:references:references; bh=XqvLPo6G2VMc2uSMCW8zniuhPnQwKOwhNYBDoWGGXT8=; b=IdWdGeA5O5dcUjJHLFSTNibEZY9pHGBKqfrxjQQwmKpJlEjMioqQYiPEgvRG1EeoRS+Jso d8TL+71xVF589KaQbfSVu0KfPLiYB2y8QkGxDnxHBQP2YgiaOc5A4aR155Cb+CBE95gDiT Lrly9njNWLUgWXn8Lnqrd7eHbjv9ojY= Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-435-hkJ6_WFAPc-2MBbHBx4DSw-1; Tue, 20 Aug 2024 05:45:32 -0400 X-MC-Unique: hkJ6_WFAPc-2MBbHBx4DSw-1 Received: by mail-wr1-f71.google.com with SMTP id ffacd0b85a97d-3718baf35e0so2632727f8f.1 for ; Tue, 20 Aug 2024 02:45:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724147131; x=1724751931; h=in-reply-to:references:user-agent:to:from:cc:subject:message-id :date:content-transfer-encoding:mime-version:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=XqvLPo6G2VMc2uSMCW8zniuhPnQwKOwhNYBDoWGGXT8=; b=hixKYL2O2A6X2LZGL1l1t0Ehnfy5qPVOgLWrADouPZnsP0AEnt9iHNer4MzM1EGPyu LfLCmbElsYItmigIqt6TJJLJjPaIeJ4y/JCJ1edz7cyA3siyac7/nd30Af6wQBqiWX0O xo4jQJvnUGTNZCERDvhDKDtye5iPsIf7KVT2zbJeSBKYqTqU5pYxZSl/UQ/Yi4jBCtp/ DtGFzJbqIShf3gGYNKxzZo/MFjPgySaFe5atN4zUQUMj5DTrDiuKSlKuxbES4wOo3VOw dT239xtoJuIc3t49nXbAaozSEvHKJjIrDBOatcHssfW94n2qV8WwDPkZe+jyfnQNQ0DD RZwg== X-Forwarded-Encrypted: i=1; AJvYcCVkK6FbIvUorYv503C4RVeo8NguPqQHmRcwPANPqjfcev2cNL3BesAkjWWqFlL1Xv0PPfs=@dpdk.org X-Gm-Message-State: AOJu0YzljFq8PnuPOqTrUIDS9mVaXlIyZe2xof8TONyyx9KIINLiGoPO guQbFNks+j5UHn06uBEjjp6mC3kAUiAULmCSSYBa0O6qZTyaCiQYAMVYPZALgFPjGX5mezsZrL8 opHI61Qh/DPwFgJsuRNxkkGTQBz8CDJqRvU9jKy/P X-Received: by 2002:a5d:6c64:0:b0:367:980a:6aa with SMTP id ffacd0b85a97d-371c6060b36mr1547092f8f.54.1724147130757; Tue, 20 Aug 2024 02:45:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGSG4vfIexBecqiRQYiIT5cVMzWRN9C4dWpElOintQsYrPVuiYI97cfUORWcBHCV9/oCPkjrA== X-Received: by 2002:a5d:6c64:0:b0:367:980a:6aa with SMTP id ffacd0b85a97d-371c6060b36mr1547056f8f.54.1724147130205; Tue, 20 Aug 2024 02:45:30 -0700 (PDT) Received: from localhost (2a01cb00025433006239e1f47a0b2371.ipv6.abo.wanadoo.fr. [2a01:cb00:254:3300:6239:e1f4:7a0b:2371]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3718983a047sm12745655f8f.11.2024.08.20.02.45.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 20 Aug 2024 02:45:29 -0700 (PDT) Mime-Version: 1.0 Date: Tue, 20 Aug 2024 11:45:29 +0200 Message-Id: Subject: Re: [PATCH v2 1/4] usertools/cpu_layout: update coding style Cc: From: "Robin Jarry" To: "Burakov, Anatoly" , User-Agent: aerc/0.18.2-29-g7dd0fdeda6c9 References: <4844fc3a4604ffef789702752ff04699ab5118db.1723810613.git.anatoly.burakov@intel.com> <770a909a-025e-49e5-909f-455e47953d0f@intel.com> In-Reply-To: <770a909a-025e-49e5-909f-455e47953d0f@intel.com> X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8; format=Flowed X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Burakov, Anatoly, Aug 20, 2024 at 11:31: > > I checked and unless I missed something, dpdk-pmdinfo.py uses the=20 > > symbols from the typing module for annotations. Not builtin container= =20 > > types. > > It does both. Check e.g. line 147: > > def scrub_pci_ids(info: dict): Ah, that does not require python 3.9. The dict type is not subscripted=20 with key and value types. This syntax works since python 3.5. What would not work is something as follows: def scrub_pci_ids(info: dict[str, list[int]]):