[PATCH v2 1/4] usertools/cpu_layout: update coding style
Robin Jarry
rjarry at redhat.com
Tue Aug 20 11:45:29 CEST 2024
Burakov, Anatoly, Aug 20, 2024 at 11:31:
> > I checked and unless I missed something, dpdk-pmdinfo.py uses the
> > symbols from the typing module for annotations. Not builtin container
> > 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
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]]):
More information about the dev
mailing list