Skip to content

Commit d2b3cc0

Browse files
authored
fix: do not update the result of locals() directly
1 parent 74ed927 commit d2b3cc0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ydb/topic.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ def reader(
321321
if not decoder_executor:
322322
decoder_executor = self._executor
323323

324-
args = locals()
324+
args = locals().copy()
325325
del args["self"]
326326
self._check_closed()
327327

@@ -342,7 +342,7 @@ def writer(
342342
encoders: Optional[Mapping[_ydb_topic_public_types.PublicCodec, Callable[[bytes], bytes]]] = None,
343343
encoder_executor: Optional[concurrent.futures.Executor] = None, # default shared client executor pool
344344
) -> TopicWriter:
345-
args = locals()
345+
args = locals().copy()
346346
del args["self"]
347347
self._check_closed()
348348

0 commit comments

Comments
 (0)