Skip to content

Instantly share code, notes, and snippets.

View knstntn's full-sized avatar
🏠
Working from home

knstntn

🏠
Working from home
View GitHub Profile
class PortInfo:
device_name: str
port_name: str
class Device:
name: str
links: dict[str, PortInfo]
# You have list of devices
devices: list[Device] = ...