MCPcopy Create free account
hub / github.com/OpenHands/OpenHands / Base

Class Base

openhands/app_server/utils/sql_utils.py:10–19  ·  view source on GitHub ↗

Base class for all SQLAlchemy models. Uses SQLAlchemy 2.0 DeclarativeBase for proper type inference with Mapped types. This is backward compatible with existing Column() definitions while enabling gradual migration to mapped_column() with Mapped[T] type annotations.

Source from the content-addressed store, hash-verified

8
9
10class Base(DeclarativeBase):
11 """
12 Base class for all SQLAlchemy models.
13
14 Uses SQLAlchemy 2.0 DeclarativeBase for proper type inference with Mapped types.
15 This is backward compatible with existing Column() definitions while enabling
16 gradual migration to mapped_column() with Mapped[T] type annotations.
17 """
18
19 pass
20
21
22T = TypeVar('T', bound=Enum)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected