beanie icon indicating copy to clipboard operation
beanie copied to clipboard

Wrong Document.get type hint

Open Luc1412 opened this issue 2 years ago • 0 comments

Document.get's document_id parameter is currently type hinted as PydanticObjectId which suggests that the document id always will be a MongoDB ObjectID. But this library allows re-assigning the document id type, so the type hint should be a TypeVar pointing to Document.id's current type

Luc1412 avatar Jul 27 '22 08:07 Luc1412