-
Type:
Task
-
Resolution: Done
-
Priority:
Minor - P4
-
Affects Version/s: None
-
Component/s: None
-
None
-
Python Drivers
Context
We want to start using binary for some of our mongo database fields but the type annotation for binary.py is incorrect. Specifically,
https://github.com/mongodb/mongo-python-driver/blob/8fa6750a7e077c33f304e72f3e17467ced9cd224/bson/binary.py#L415
https://github.com/mongodb/mongo-python-driver/blob/8fa6750a7e077c33f304e72f3e17467ced9cd224/bson/binary.py#L408
In these two lines, there is a reference to `list[ int, float ]` when it should be `list[ int | float]`.
Definition of done
The types should be fixed as suggested.
Pitfalls
People who depend on the existing implementation of the type might break, but those should be fixed as well.