some typos
This commit is contained in:
4
mypy.ini
4
mypy.ini
@ -1,5 +1,7 @@
|
||||
[mypy]
|
||||
python_version = 3.8
|
||||
plugins = pydantic.mypy
|
||||
|
||||
[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)
|
||||
async def create_item(item: Item, category: Category):
|
||||
async def add_item_category(item: Item, category: Category):
|
||||
await item.categories.add(category)
|
||||
return item
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
import asyncio
|
||||
import sqlite3
|
||||
|
||||
import asyncpg
|
||||
import asyncpg # type: ignore
|
||||
import databases
|
||||
import pymysql
|
||||
import pytest
|
||||
|
||||
Reference in New Issue
Block a user