We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2190cd9 commit a2f14d5Copy full SHA for a2f14d5
beanie/odm/bulk.py
@@ -84,7 +84,9 @@ def __init__(
84
self.object_class = object_class
85
self.bypass_document_validation = bypass_document_validation
86
self.comment = comment
87
- self._collection_name: str
+ self._collection_name: Optional[str] = (
88
+ object_class.get_collection_name() if object_class else None
89
+ )
90
91
async def __aenter__(self) -> "BulkWriter":
92
return self
0 commit comments