Cleanup, fixed some bugs (yt etc)

This commit is contained in:
mrhanky
2017-07-31 15:29:59 +02:00
parent 59b67d9570
commit 6ac0e94180
10 changed files with 75 additions and 67 deletions

View File

@@ -1,6 +1,7 @@
# -*- coding: utf-8 -*-
import re
import random
from typing import Tuple
from pprint import pprint
from datetime import datetime, timedelta
@@ -34,7 +35,7 @@ def time_delta(text: str) -> timedelta:
return timedelta(**{unit: num})
def parse_int(val: str, select: bool = True) -> tuple:
def parse_int(val: str, select: bool = True) -> Tuple[int, str]:
try:
val = int(val)
if val is not 0: