mirror of
https://github.com/OpenHands/OpenHands.git
synced 2025-12-26 13:52:43 +08:00
Fix Pydantic schema generation error for UserAuth class
Replace Pydantic dataclass with standard Python dataclass in GithubIssue to avoid schema generation issues with UserAuth abstract base class. This resolves the server startup crash: PydanticSchemaGenerationError: Unable to generate pydantic-core schema for UserAuth Co-authored-by: openhands <openhands@all-hands.dev>
This commit is contained in:
parent
e705b848d9
commit
5eec8ccc43
@ -19,7 +19,7 @@ from integrations.utils import (
|
||||
has_exact_mention,
|
||||
)
|
||||
from jinja2 import Environment
|
||||
from pydantic.dataclasses import dataclass
|
||||
from dataclasses import dataclass
|
||||
from server.auth.constants import GITHUB_APP_CLIENT_ID, GITHUB_APP_PRIVATE_KEY
|
||||
from server.auth.token_manager import TokenManager
|
||||
from server.config import get_config
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user