/
phprus
/
github_dpdk
Обзор
Документация
Войти
/
phprus
/
github_dpdk
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
dts/framework/testbed_model/virtual_device.py
29 строк
666 B
Andrew Bailey
dts: add missing type hints to method signatures
21 окт 2025, 14:52
21 окт 2025, 14:52
4d12498
Код
Авторство
О чём код?
# SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2023 PANTHEON.tech s.r.o. """Virtual devices model. Alongside support for physical hardware, DPDK can create various virtual devices. """ class VirtualDevice: """Base class for virtual devices used by DPDK. Attributes: name: The name of the virtual device. """ name: str def __init__(self, name: str) -> None: """Initialize the virtual device. Args: name: The name of the virtual device. """ self.name = name def __str__(self) -> str: """This corresponds to the name used for DPDK devices.""" return self.name