From 320588a3c1afa269034d4c7610fb6b112cd1b866 Mon Sep 17 00:00:00 2001 From: collerek Date: Sat, 31 Oct 2020 09:23:24 +0100 Subject: [PATCH] some typos --- mypy.ini | 4 +++- tests/test_fastapi_docs.py | 2 +- tests/test_unique_constraints.py | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/mypy.ini b/mypy.ini index d9b0283..6347ae1 100644 --- a/mypy.ini +++ b/mypy.ini @@ -1,5 +1,7 @@ [mypy] python_version = 3.8 +plugins = pydantic.mypy [mypy-sqlalchemy.*] -ignore_missing_imports = True \ No newline at end of file +ignore_missing_imports = True + diff --git a/tests/test_fastapi_docs.py b/tests/test_fastapi_docs.py index 030815f..ed956c6 100644 --- a/tests/test_fastapi_docs.py +++ b/tests/test_fastapi_docs.py @@ -77,7 +77,7 @@ async def create_item(item: Item): @app.post("/items/add_category/", response_model=Item) -async def create_item(item: Item, category: Category): +async def add_item_category(item: Item, category: Category): await item.categories.add(category) return item diff --git a/tests/test_unique_constraints.py b/tests/test_unique_constraints.py index 7908ae4..ffa561c 100644 --- a/tests/test_unique_constraints.py +++ b/tests/test_unique_constraints.py @@ -1,7 +1,7 @@ import asyncio import sqlite3 -import asyncpg +import asyncpg # type: ignore import databases import pymysql import pytest