From c7015664904d2d54fbb6eb14c14b0ab9f5813f91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ferit=20Yi=C4=9Fit=20BALABAN?= Date: Sat, 16 Jul 2022 01:39:56 +0300 Subject: [PATCH] Tiny fixes --- fetchpy2 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fetchpy2 b/fetchpy2 index c3e5a02..cc480ca 100755 --- a/fetchpy2 +++ b/fetchpy2 @@ -10,7 +10,7 @@ from subprocess import run IMG_LOC = '/home/ferit/sources/neco.png' -def clr(text): +def clr(text: str): dump = '\u001b[30m█\u001b[31m█\u001b[32m█\u001b[33m█\u001b[34m█\u001b[35m█\u001b[36m█\u001b[37m█' frame = '\u001b[31m' info = '\u001b[32m' @@ -55,14 +55,14 @@ def clr(text): iter = jump_to print(' ', end='') elif clr_dict.__contains__(char): - print(f'{clr_dict[char]}{char}\u001b[0m', end='') + print(f'{clr_dict[char]}{char}\u001b[0m', end='') else: print(char, end='') iter += 1 print('') -def read_until_space(text, start_at): +def read_until_space(text: str, start_at: int): buffer = '' iterator = start_at while text[iterator] != ' ':