Skip to content

Commit 4445b42

Browse files
committed
Mark StreamInterface type as deprecated
StreamInterface is a PHP type that abstracts around built-in byte streams. BytesIO serves this purpose in Python making this type unnecessary
1 parent c752504 commit 4445b42

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/msgraph_core/requests/batch_response_item.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
from typing import Optional, Dict, Any, Callable
22
from io import BytesIO
3+
from deprecated import deprecated
34

45
from kiota_abstractions.serialization import Parsable, ParsableFactory
56
from kiota_abstractions.serialization import ParseNode
67
from kiota_abstractions.serialization import SerializationWriter
78

9+
@deprecated("Use BytesIO type instead")
10+
class StreamInterface(BytesIO):
11+
pass
12+
813

914
class BatchResponseItem(Parsable):
1015

@@ -104,7 +109,7 @@ def body(self, body: Optional[BytesIO]) -> None:
104109
"""
105110
Set the body of the response
106111
:param body: The body of the response
107-
:type body: Optional[StreamInterface]
112+
:type body: Optional[BytesIO]
108113
"""
109114
self._body = body
110115

0 commit comments

Comments
 (0)