Skip to content

Commit 2021e0f

Browse files
committed
RDBC-741 Get attachment method should be typehinted that it returns CloseableAttachmentResult
1 parent ae95c7d commit 2021e0f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ravendb/documents/session/document_session.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from ravendb.documents.indexes.definitions import AbstractCommonApiForIndexes
2020
from ravendb.documents.operations.attachments import (
2121
GetAttachmentOperation,
22-
AttachmentName,
22+
AttachmentName, CloseableAttachmentResult,
2323
)
2424
from ravendb.documents.operations.batch import BatchOperation
2525
from ravendb.documents.operations.executor import OperationExecutor, SessionOperationExecutor
@@ -1127,7 +1127,7 @@ def get(
11271127
name: str = None,
11281128
# att_requests: Optional[List[AttachmentRequest]] = None,
11291129
# todo: fetching multiple attachments with single command
1130-
):
1130+
) -> CloseableAttachmentResult:
11311131
# if att_requests is not None:
11321132
# if entity_or_document_id or name:
11331133
# raise ValueError("Specify either <att_requests> or <entity/document_id, name>")

0 commit comments

Comments
 (0)