You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
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:
Related issues:
find
,find_one
([BUG] Type hint error on pylance #807),,insert
save
(kwargs issue),update
(args, kwargs issue),([BUG] Pylance: Everysave_changes
.save()
,.insert()
,.update()
operation reportsArgument missing for parameter "self"
#864),([BUG] Incorrect type annotations for Document'sreplace
insert
,save
andreplace
#679),delete_all
([BUG] Pylance strict mode: type of "delete_all" is partially unknown #769 - kwargs issue),insert_many
(kwargs issue) methods.BaseFindComparisonOperator
constructor #925)cls._document_models
anddoc_model
Generic typing)Link
class)Document.id
annotation to support any custom user-supplied type that is BSON serializable (refs: Wrong Document.get type hint #314, [BUG] Mypy:: Type error: base class "Document" defined the type as "Optional[PydanticObjectId]" #336)Related: [improvement] Allow overiding of id field for typechecker #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.
The text was updated successfully, but these errors were encountered: