mongo-python-driver/test/mypy_fails/insert_one_list.py
2022-03-29 18:03:42 -05:00

7 lines
249 B
Python

from pymongo import MongoClient
client: MongoClient = MongoClient()
client.test.test.insert_one(
[{}]
) # error: Argument 1 to "insert_one" of "Collection" has incompatible type "List[Dict[<nothing>, <nothing>]]"; expected "Mapping[str, Any]"