Skip to content

Commit 8f15b04

Browse files
committed
Avoid reuse of variable name for values of different types.
Mypy just doesn't like this when it's done in the local scope (see python/mypy#1174).
1 parent 087f1aa commit 8f15b04

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

envlauncher/launchers.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -330,10 +330,10 @@ def build_args(object_path, method, *contents) -> List[str]:
330330
@staticmethod
331331
def parse_session_id(reply: bytes) -> int:
332332
"""Takes an `addSession` reply and returns the id as an int."""
333-
reply = str(reply, encoding=sys.stdout.encoding)
334-
matched = re.search(r'(?:int16|int32|int64)[ ](\d+)', reply)
333+
reply_str = str(reply, encoding=sys.stdout.encoding)
334+
matched = re.search(r'(?:int16|int32|int64)[ ](\d+)', reply_str)
335335
if not matched:
336-
msg = f'Unable to get Yakuake tab session-id: {reply!r}'
336+
msg = f'Unable to get Yakuake tab session-id: {reply_str!r}'
337337
raise RuntimeError(msg)
338338
return int(matched.group(1))
339339

0 commit comments

Comments
 (0)