File tree 3 files changed +9
-9
lines changed
3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 8
8
from pathlib import Path
9
9
10
10
11
- def main ():
11
+ def main () -> None :
12
12
parser = argparse .ArgumentParser (description = "Web scraper with aria2c output" )
13
13
parser .add_argument (
14
14
"urls_file" ,
@@ -36,16 +36,16 @@ def main():
36
36
blocking_run (args )
37
37
38
38
39
- def blocking_run (args ):
39
+ def blocking_run (args ) -> None :
40
40
asyncio .run (run (args ))
41
41
42
42
43
- async def run (args ):
43
+ async def run (args ) -> None :
44
44
print (args )
45
45
print (args .timeout )
46
46
47
47
48
- def wrapper (args ):
48
+ def wrapper (args ) -> None :
49
49
global THREAD
50
50
51
51
if THREAD is not None and THREAD .is_alive ():
Original file line number Diff line number Diff line change 8
8
from pathlib import Path
9
9
10
10
11
- def main ():
11
+ def main () -> None :
12
12
parser = argparse .ArgumentParser (description = "Web scraper with aria2c output" )
13
13
parser .add_argument (
14
14
"urls_file" ,
@@ -36,16 +36,16 @@ def main():
36
36
blocking_run (args )
37
37
38
38
39
- def blocking_run (args ):
39
+ def blocking_run (args ) -> None :
40
40
asyncio .run (run (args ))
41
41
42
42
43
- async def run (args ):
43
+ async def run (args ) -> None :
44
44
print (args )
45
45
print (args .timeout )
46
46
47
47
48
- def wrapper (args ):
48
+ def wrapper (args ) -> None :
49
49
global THREAD
50
50
51
51
if THREAD is not None and THREAD .is_alive ():
Original file line number Diff line number Diff line change 21
21
def hello (count : int , name : str ) -> None :
22
22
"""Simple program that greets NAME for a total of COUNT times."""
23
23
for _index in range (count ):
24
- click .echo ("Hello %s!" % name )
24
+ click .echo (f "Hello { name } !" )
25
25
26
26
27
27
Click2Gui (run_function = hello )
You can’t perform that action at this time.
0 commit comments