Cleanup, fixed some bugs (yt etc)
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user