-
Type: Bug
-
Resolution: Fixed
-
Priority: Unknown
-
Affects Version/s: None
-
Component/s: None
-
None
coll: Collection[MovieWithoutId] = client.test.test coll.bulk_write([InsertOne(Movie({"_id": ObjectId(), "name": "THX-1138", "year": 1971}))])
Bulk Write does not type check the inserted type based on the type of the collection. The previous example should raise an error in MyPy but does not.
- is related to
-
PYTHON-3454 Specifying a generic type for a collection does not correctly enforce type safety when inserting data
- Closed