beanie
beanie copied to clipboard
Wrong Document.get type hint
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