[PATCH v2 1/4] usertools/cpu_layout: update coding style
Burakov, Anatoly
anatoly.burakov at intel.com
Tue Aug 20 11:56:46 CEST 2024
On 8/20/2024 11:45 AM, Robin Jarry wrote:
> 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]]):
>
I stand corrected then!
--
Thanks,
Anatoly
More information about the dev
mailing list