codestyle: fiddle with type hints and LSP hints
This commit is contained in:
parent
6b15d2d85c
commit
e348748a5c
2 changed files with 8 additions and 4 deletions
|
|
@ -1,3 +1,5 @@
|
|||
from typing import Any
|
||||
from sqlmodel.sql.expression import Select
|
||||
import logging
|
||||
import uuid
|
||||
|
||||
|
|
@ -91,7 +93,9 @@ async def load_initial_data(engine) -> Sequence[Teilchen]:
|
|||
List of Teilchen, potentially empty
|
||||
"""
|
||||
with Session(engine) as session:
|
||||
statement = select(Teilchen.id, Teilchen.name, Teilchen.description, Teilchen.tags) # ty:ignore[no-matching-overload]
|
||||
statement: Select[Any] = select(
|
||||
Teilchen.id, Teilchen.name, Teilchen.description, Teilchen.tags
|
||||
)
|
||||
all_teilchen = session.exec(statement).all()
|
||||
|
||||
logger.debug("Loading initial data: found %s records", len(all_teilchen))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue