add hints for ty, remove hints for basedpyright

This commit is contained in:
bronsen 2026-02-07 02:48:27 +01:00
parent 6155b54083
commit a7d0bee0e7

View file

@ -2,7 +2,7 @@ import logging
import uuid import uuid
from sqlmodel import ( from sqlmodel import (
Field, # pyright: ignore[reportUnknownVariableType] Field,
SQLModel, SQLModel,
) )
@ -18,7 +18,7 @@ class TeilchenCreate(SQLModel):
class Teilchen(TeilchenCreate, table=True): class Teilchen(TeilchenCreate, table=True):
id: uuid.UUID = Field(default_factory=uuid.uuid7, primary_key=True) id: uuid.UUID = Field(default_factory=uuid.uuid7, primary_key=True) # ty:ignore[unresolved-attribute]
async def make_teilchen_input(text: str) -> TeilchenCreate | None: async def make_teilchen_input(text: str) -> TeilchenCreate | None: