Fix typing in server directory (#8375)

Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: Rohit Malhotra <rohitvinodmalhotra@gmail.com>
This commit is contained in:
Graham Neubig
2025-05-13 17:27:59 -04:00
committed by GitHub
parent f9b0fcd76e
commit 154eed148f
15 changed files with 79 additions and 56 deletions

View File

@@ -1,6 +1,6 @@
from abc import ABC, abstractmethod
from enum import Enum
from typing import ClassVar, Protocol
from typing import Any, ClassVar, Protocol
class AppMode(Enum):
@@ -27,7 +27,7 @@ class ServerConfigInterface(ABC):
raise NotImplementedError
@abstractmethod
async def get_config(self) -> dict[str, str]:
def get_config(self) -> dict[str, Any]:
"""Configure attributes for frontend"""
raise NotImplementedError