From c2a2f353f74c648487b942e488e56bb6eb87284a Mon Sep 17 00:00:00 2001 From: Cameron Clough Date: Wed, 16 Apr 2025 17:14:26 +0100 Subject: [PATCH] this also works --- system/ui/lib/wrapper.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/system/ui/lib/wrapper.py b/system/ui/lib/wrapper.py index 2aa3a686d7..4c4e86c7e2 100644 --- a/system/ui/lib/wrapper.py +++ b/system/ui/lib/wrapper.py @@ -1,19 +1,13 @@ import threading import time -from abc import ABC, abstractmethod from typing import Generic, TypeVar from openpilot.system.ui.lib.application import gui_app - -class Renderer(ABC): - @abstractmethod - def render(self) -> None: - pass - +class Renderer: + def render(self): ... T = TypeVar("T", bound=Renderer) - class Wrapper(Generic[T]): def __init__(self, title: str, renderer_cls: type[T], *args): self._title = title