We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1de37c commit 77a09aeCopy full SHA for 77a09ae
rdflib/plugins/serializers/turtle.py
@@ -230,13 +230,15 @@ def reset(self):
230
def serialize(
231
self,
232
stream: BufferedIOBase,
233
- base: Optional[str],
234
- encoding: Optional[str],
+ base: Optional[str] = None,
+ encoding: Optional[str] = None,
235
spacious: Optional[bool] = None,
236
**args
237
):
238
self.reset()
239
- self.stream = TextIOWrapper(stream, encoding, errors="replace", write_through=True)
+ self.stream = TextIOWrapper(
240
+ stream, encoding, errors="replace", write_through=True
241
+ )
242
# self.encoding = encoding
243
# if base is given here, use that, if not and a base is set for the graph use that
244
if base is not None:
0 commit comments