fixed ruff warning

This commit is contained in:
2026-03-09 17:15:20 -04:00
parent 0497a50a43
commit 3a3267ee9a
2 changed files with 3 additions and 3 deletions

View File

@@ -2,7 +2,7 @@
from __future__ import annotations
from enum import Enum
from enum import StrEnum
from sqlalchemy import ForeignKey, String
from sqlalchemy.orm import Mapped, mapped_column, relationship
@@ -10,7 +10,7 @@ from sqlalchemy.orm import Mapped, mapped_column, relationship
from python.orm.richie.base import RichieBase, TableBase
class RelationshipType(str, Enum):
class RelationshipType(StrEnum):
"""Relationship types with default closeness weights.
Default weight is an integer 1-10 where 10 = closest relationship.

View File

@@ -3,8 +3,8 @@
from __future__ import annotations
import logging
from os import getenv
import time
from os import getenv
from typing import Annotated
import typer