some typos
This commit is contained in:
2
mypy.ini
2
mypy.ini
@ -1,5 +1,7 @@
|
|||||||
[mypy]
|
[mypy]
|
||||||
python_version = 3.8
|
python_version = 3.8
|
||||||
|
plugins = pydantic.mypy
|
||||||
|
|
||||||
[mypy-sqlalchemy.*]
|
[mypy-sqlalchemy.*]
|
||||||
ignore_missing_imports = True
|
ignore_missing_imports = True
|
||||||
|
|
||||||
|
|||||||
@ -77,7 +77,7 @@ async def create_item(item: Item):
|
|||||||
|
|
||||||
|
|
||||||
@app.post("/items/add_category/", response_model=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)
|
await item.categories.add(category)
|
||||||
return item
|
return item
|
||||||
|
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
import asyncio
|
import asyncio
|
||||||
import sqlite3
|
import sqlite3
|
||||||
|
|
||||||
import asyncpg
|
import asyncpg # type: ignore
|
||||||
import databases
|
import databases
|
||||||
import pymysql
|
import pymysql
|
||||||
import pytest
|
import pytest
|
||||||
|
|||||||
Reference in New Issue
Block a user