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
6
tests.py
6
tests.py
|
|
@ -1,12 +1,12 @@
|
|||
from teilchensammler_cli.database import create_db_and_tables
|
||||
from sqlalchemy.sql import text
|
||||
import uuid
|
||||
from typing import Generator
|
||||
|
||||
import pytest
|
||||
from sqlalchemy import Engine
|
||||
from sqlalchemy.sql import text
|
||||
from sqlmodel import Session, SQLModel, create_engine
|
||||
|
||||
from teilchensammler_cli.database import create_db_and_tables
|
||||
from teilchensammler_cli.models import (
|
||||
Teilchen,
|
||||
TeilchenCreate,
|
||||
|
|
@ -46,7 +46,7 @@ def TC(**kwargs) -> TeilchenCreate | None:
|
|||
"""
|
||||
if kwargs:
|
||||
arguments = empty_teilchen_data | kwargs
|
||||
return TeilchenCreate(**arguments) # ty:ignore[invalid-argument-type]
|
||||
return TeilchenCreate(**arguments)
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue