Issue to track progress on adding or fixing type annotations in Beanie project.
The goal is to have Beanie fully (and correctly!) type annotated (where possible).
Issues at hand:
[x] Kwargs and args not type annotated (PR: #1049)
Related issues:
[x] Fix type annotations for find, find_one (#807), ~insert~, save (kwargs issue), update (args, kwargs issue), ~save_changes~ (#864), ~replace~ (#679), delete_all (#769 - kwargs issue), insert_many (kwargs issue) methods.
[ ] beanie/odm/operators/find/comparison.py (leftover from #925)
[ ] Fix Generic type annotations (Type, Dict, Mapping etc):
[ ] beanie/odm/union_doc.py (cls._document_models and doc_model Generic typing)
[ ] beanie/odm/fields.py (issues in Link class)
[ ] Fix Document.id annotation to support any custom user-supplied type that is BSON serializable (refs: #314, #336)
Related: #60, to be decided if implementation should provide a custom Protocol type that other types should subclass, in order to pass Pydantic serialization/deserialization use cases.
Work in progress, more issues/categories to be added.
Issue to track progress on adding or fixing type annotations in Beanie project. The goal is to have Beanie fully (and correctly!) type annotated (where possible).
Issues at hand:
find
,find_one
(#807), ~insert
~,save
(kwargs issue),update
(args, kwargs issue), ~save_changes
~ (#864), ~replace
~ (#679),delete_all
(#769 - kwargs issue),insert_many
(kwargs issue) methods.cls._document_models
anddoc_model
Generic typing)Link
class)Document.id
annotation to support any custom user-supplied type that is BSON serializable (refs: #314, #336) Related: #60, to be decided if implementation should provide a custom Protocol type that other types should subclass, in order to pass Pydantic serialization/deserialization use cases.Work in progress, more issues/categories to be added.