@@ -170,7 +170,7 @@ def test_bulk_write_heterogeneous(self):
170170 InsertOne (Movie (name = "American Graffiti" , year = 1973 )),
171171 ReplaceOne (
172172 {},
173- {"name" : "American Graffiti" , "year" : "WRONG_TYPE" }, # type:ignore[typeddict-item ]
173+ {"name" : "American Graffiti" , "year" : "WRONG_TYPE" }, # type:ignore[arg-type ]
174174 ),
175175 DeleteOne ({}),
176176 ]
@@ -243,7 +243,7 @@ def test_with_options(self) -> None:
243243 assert retrieved is not None
244244 assert retrieved ["name" ] == "foo"
245245 # We expect a type error here.
246- assert retrieved ["other" ] == 1 # type:ignore[typeddict-item ]
246+ assert retrieved ["other" ] == 1 # type:ignore[misc ]
247247
248248
249249class TestDecode (unittest .TestCase ):
@@ -416,11 +416,11 @@ def test_typeddict_document_type_insertion(self) -> None:
416416 bad_mov = {"name" : "THX-1138" , "year" : "WRONG TYPE" }
417417 bad_movie = Movie (name = "THX-1138" , year = "WRONG TYPE" ) # type: ignore[typeddict-item]
418418 coll .insert_one (bad_mov ) # type:ignore[arg-type]
419- coll .insert_one ({"name" : "THX-1138" , "year" : "WRONG TYPE" }) # type: ignore[typeddict-item ]
419+ coll .insert_one ({"name" : "THX-1138" , "year" : "WRONG TYPE" }) # type: ignore[arg-type ]
420420 coll .insert_one (bad_movie )
421421 coll .insert_many ([bad_mov ]) # type: ignore[list-item]
422422 coll .insert_many (
423- [{"name" : "THX-1138" , "year" : "WRONG TYPE" }] # type: ignore[typeddict -item]
423+ [{"name" : "THX-1138" , "year" : "WRONG TYPE" }] # type: ignore[list -item]
424424 )
425425 coll .insert_many ([bad_movie ])
426426
0 commit comments