Skip to content

🔖 Release 0.4.0

Choose a tag to compare

@github-actions github-actions released this 29 Oct 20:30
· 76 commits to master since this release
656af8d

Notable Changes

from datetime import datetime
from sqlalchemy.orm import Mapped, mapped_column

from nonebot_plugin_orm import Model


class User(Model):
    id: Mapped[int] = mapped_column(primary_key=True)
    name: Mapped[str]
    signup_ts: Mapped[datetime]


user = User(id="42", name="John Doe", signup_ts="2032-06-21T12:00")
print(
    user  # User(id=42, name='John Doe', signup_ts=datetime.datetime(2032, 6, 21, 12, 0))
)

What's Changed

Full Changelog: v0.3.0...v0.4.0