mirror of
https://github.com/grillazz/fastapi-sqlalchemy-asyncpg.git
synced 2025-11-30 13:20:40 +03:00
fix code lint
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import uuid
|
||||
from typing import Optional
|
||||
|
||||
from fastapi import HTTPException, status
|
||||
from sqlalchemy import String, select
|
||||
@@ -15,7 +14,7 @@ class Nonsense(Base):
|
||||
__table_args__ = ({"schema": "happy_hog"},)
|
||||
id: Mapped[uuid:UUID] = mapped_column(UUID(as_uuid=True), unique=True, default=uuid.uuid4, autoincrement=True)
|
||||
name: Mapped[str] = mapped_column(String, primary_key=True, unique=True)
|
||||
description: Mapped[Optional[str]]
|
||||
description: Mapped[str | None]
|
||||
# TODO: apply relation to other tables
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user